import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/api/@ohos.window.d.ts',
  content: "/*\n * Copyright (c) 2021 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkUI\n */\nimport { AsyncCallback } from './@ohos.base';\nimport BaseContext from './application/BaseContext';\nimport image from './@ohos.multimedia.image';\nimport { UIContext } from './@ohos.arkui.UIContext';\nimport ConfigurationConstant from './@ohos.app.ability.ConfigurationConstant';\nimport bundleManager from './@ohos.bundle.bundleManager';\nimport { ColorMetrics } from './@ohos.arkui.node';\n/**\n * Defines the window callback.\n *\n * @typedef Callback<T, V = void>\n * @syscap SystemCapability.Window.SessionManager\n * @atomicservice\n * @since 15\n */\ndeclare interface Callback<T, V = void> {\n    /**\n     * Defines the callback info.\n     *\n     * @param { T } data - the data will be used in the callback.\n     * @returns { V } - Returns result of the callback.\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 15\n     */\n    (data: T): V;\n}\n/**\n   * Defines the window animation curve param.\n   *\n   * @typedef { Array<number> } AnimationCurveParam\n   * @syscap SystemCapability.Window.SessionManager\n   * @atomicservice\n   * @since 20\n   */\ndeclare type WindowAnimationCurveParam = Array<number>;\n/**\n * Window manager.\n *\n * @namespace window\n * @syscap SystemCapability.WindowManager.WindowManager.Core\n */\n/**\n * Window manager.\n *\n * @namespace window\n * @syscap SystemCapability.WindowManager.WindowManager.Core\n * @crossplatform\n * @since 10\n */\n/**\n * Window manager.\n *\n * @namespace window\n * @syscap SystemCapability.WindowManager.WindowManager.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare namespace window {\n    /**\n     * The type of a window.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 7\n     */\n    /**\n     * The type of a window.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 12\n     */\n    enum WindowType {\n        /**\n         * App.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @FAModelOnly\n         * @since 7\n         */\n        TYPE_APP,\n        /**\n         * System alert.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 11\n         */\n        TYPE_SYSTEM_ALERT,\n        /**\n         * Float.\n         *\n         * @permission ohos.permission.SYSTEM_FLOAT_WINDOW\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Float.\n         * Require \"ohos.permission.SYSTEM_FLOAT_WINDOW\" permission\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @atomicservice\n         * @since 12\n         */\n        TYPE_FLOAT,\n        /**\n         * Dialog.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 10\n         */\n        /**\n         * Dialog.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @atomicservice\n         * @since 12\n         */\n        TYPE_DIALOG,\n        /**\n         * Main.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 18\n         */\n        TYPE_MAIN = 32\n    }\n    /**\n     * Describes the type of avoid area\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 7\n     */\n    /**\n     * Describes the type of avoid area\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Describes the type of avoid area\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum AvoidAreaType {\n        /**\n         * Default area of the system\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Default area of the system\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Default area of the system\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        TYPE_SYSTEM,\n        /**\n         * Notch\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Notch\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Notch\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        TYPE_CUTOUT,\n        /**\n         * Area for system gesture\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Area for system gesture\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Area for system gesture\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        TYPE_SYSTEM_GESTURE,\n        /**\n         * Area for keyboard\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Area for keyboard\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Area for keyboard\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        TYPE_KEYBOARD,\n        /**\n         * Area for navigation indicator\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Area for navigation indicator\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        TYPE_NAVIGATION_INDICATOR\n    }\n    /**\n     * Describes the window status of an application\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @since 11\n     */\n    /**\n     * Describes the window status of an application\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 12\n     */\n    enum WindowStatusType {\n        /**\n         * Undefined status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Undefined status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        UNDEFINED = 0,\n        /**\n         * Full screen status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Full screen status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        FULL_SCREEN,\n        /**\n         * Maximize status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Maximize status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        MAXIMIZE,\n        /**\n         * Minimize status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Minimize status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        MINIMIZE,\n        /**\n         * Floating status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Floating status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        FLOATING,\n        /**\n         * Split screen status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Split screen status of the window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        SPLIT_SCREEN\n    }\n    /**\n     * Properties of status bar and navigation bar, it couldn't update automatically\n     *\n     * @interface SystemBarProperties\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 6\n     */\n    /**\n     * Properties of status bar and navigation bar, it couldn't update automatically\n     *\n     * @interface SystemBarProperties\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface SystemBarProperties {\n        /**\n         * The color of the status bar.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         */\n        /**\n         * The color of the status bar.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        statusBarColor?: string;\n        /**\n         * The light icon of the status bar.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The light icon of the status bar.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isStatusBarLightIcon?: boolean;\n        /**\n         * The content color of the status bar\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         */\n        /**\n         * The content color of the status bar\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        statusBarContentColor?: string;\n        /**\n         * The color of the navigation bar.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         */\n        /**\n         * The color of the navigation bar.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        navigationBarColor?: string;\n        /**\n         * The light icon of the navigation bar.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The light icon of the navigation bar.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isNavigationBarLightIcon?: boolean;\n        /**\n         * The content color of the navigation bar\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         */\n        /**\n         * The content color of the navigation bar\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        navigationBarContentColor?: string;\n        /**\n         * Enable the animation of the status bar.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        enableStatusBarAnimation?: boolean;\n        /**\n         * Enable the animation of the navigation bar.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        enableNavigationBarAnimation?: boolean;\n    }\n    /**\n     * Properties of status bar.\n     *\n     * @interface StatusBarProperty\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 18\n     */\n    interface StatusBarProperty {\n        /**\n         * The content color of the status bar.\n         *\n         * @type { string }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        contentColor: string;\n    }\n    /**\n     * Properties of status bar, it couldn't update automatically\n     *\n     * @interface SystemBarStyle\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface SystemBarStyle {\n        /**\n         * The content color of the status bar\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        statusBarContentColor?: string;\n    }\n    /**\n     * Rectangle\n     *\n     * @interface Rect\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 7\n     */\n    /**\n     * Rectangle\n     *\n     * @interface Rect\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Rectangle\n     *\n     * @interface Rect\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface Rect {\n        /**\n         * The left of the Rect.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The left of the Rect.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The left of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        left: number;\n        /**\n         * The top of the Rect.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The top of the Rect.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The top of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        top: number;\n        /**\n         * The width of the Rect.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The width of the Rect.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The width of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        width: number;\n        /**\n         * The height of the Rect.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The height of the Rect.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The height of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        height: number;\n    }\n    /**\n     * Avoid area\n     *\n     * @interface AvoidArea\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 7\n     */\n    /**\n     * Avoid area\n     *\n     * @interface AvoidArea\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Avoid area\n     *\n     * @interface AvoidArea\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    interface AvoidArea {\n        /**\n         * Whether avoidArea is visible on screen\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Whether avoidArea is visible on screen\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        visible: boolean;\n        /**\n         * Rectangle on the left of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Rectangle on the left of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Rectangle on the left of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        leftRect: Rect;\n        /**\n         * Rectangle on the top of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Rectangle on the top of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Rectangle on the top of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        topRect: Rect;\n        /**\n         * Rectangle on the right of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Rectangle on the right of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Rectangle on the right of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        rightRect: Rect;\n        /**\n         * Rectangle on the bottom of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Rectangle on the bottom of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Rectangle on the bottom of the screen\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        bottomRect: Rect;\n    }\n    /**\n     * Window size\n     *\n     * @interface Size\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 7\n     */\n    /**\n     * Window size\n     *\n     * @interface Size\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Window size\n     *\n     * @interface Size\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface Size {\n        /**\n         * The width of the window.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The width of the window.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The width of the window.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        width: number;\n        /**\n         * The height of the window.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The height of the window.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The height of the window.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        height: number;\n    }\n    \n    /**\n     * The info of window\n     *\n     * @interface WindowInfo\n     * @syscap SystemCapability.Window.SessionManager\n     * @since 18\n     */\n    interface WindowInfo {\n        \n        /**\n         * The position and size of the window\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 18\n         */\n        rect: Rect;\n        \n        /**\n         * bundleName of window\n         *\n         * @type { string }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 18\n         */\n        bundleName: string;\n        \n        /**\n         * abilityName of window\n         *\n         * @type { string }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 18\n         */\n        abilityName: string;\n        \n        /**\n         * Indicates target window id.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 18\n         */\n        windowId: number;\n        \n        /**\n         * The window status of an application.\n         *\n         * @type { WindowStatusType }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 18\n         */\n        windowStatusType: WindowStatusType;\n        \n        /**\n         * Whether the window is focused. The default value is false.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 18\n         */\n        isFocused?: boolean;\n    }\n    /**\n     * The info of window density\n     *\n     * @interface WindowDensityInfo\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 15\n     */\n    interface WindowDensityInfo {\n        /**\n         * System density\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        systemDensity: number;\n        /**\n         * Default density\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        defaultDensity: number;\n        /**\n         * Custom density\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        customDensity: number;\n    }\n    /**\n     * Properties of window, it couldn't update automatically\n     *\n     * @interface WindowProperties\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 6\n     */\n    /**\n     * Properties of window, it couldn't update automatically\n     *\n     * @interface WindowProperties\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Properties of window, it couldn't update automatically\n     *\n     * @interface WindowProperties\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface WindowProperties {\n        /**\n         * The position and size of the window\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * The position and size of the window\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The position and size of the window\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        windowRect: Rect;\n        /**\n         * The position relative to the window and size of drawable area\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 11\n         */\n        /**\n         * The position relative to the window and size of drawable area\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        drawableRect: Rect;\n        /**\n         * Window type\n         *\n         * @type { WindowType }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Window type\n         *\n         * @type { WindowType }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        type: WindowType;\n        /**\n         * Whether the window is displayed in full screen mode. The default value is false.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         */\n        /**\n         * Whether the window is displayed in full screen mode. The default value is false.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isFullScreen: boolean;\n        /**\n         * Whether the window layout is in full screen mode(whether the window is immersive). The default value is false.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Whether the window layout is in full screen mode(whether the window is immersive). The default value is false.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isLayoutFullScreen: boolean;\n        /**\n         * Whether the window can gain focus. The default value is true\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Whether the window can gain focus. The default value is true\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        focusable: boolean;\n        /**\n         * Whether the window is touchable. The default value is false\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Whether the window is touchable. The default value is false\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        touchable: boolean;\n        /**\n         * Brightness value of window.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         */\n        /**\n         * Brightness value of window.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Brightness value of window.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        brightness: number;\n        /**\n         * The dimbehind value of window.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        dimBehindValue: number;\n        /**\n         * Whether keep screen on.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         */\n        /**\n         * Whether keep screen on.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Whether keep screen on.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        isKeepScreenOn: boolean;\n        /**\n         * Whether make window in privacy mode or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Whether make window in privacy mode or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isPrivacyMode: boolean;\n        /**\n         * Whether is round corner or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        isRoundCorner: boolean;\n        /**\n         * Whether is transparent or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Whether is transparent or not.\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isTransparent: boolean;\n        /**\n         * Window id.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Window id.\n         *\n         * @type { number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        id: number;\n        /**\n         * display id.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        displayId?: number;\n        /**\n         * window name.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 18\n         */\n        name?: string;\n    }\n    /**\n     * The decor button style of the window.\n     *\n     * @interface DecorButtonStyle\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 14\n     */\n    interface DecorButtonStyle {\n        /**\n         * color mode.\n         *\n         * @type { ?colorMode }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        colorMode?: ConfigurationConstant.ColorMode;\n        /**\n         * button background size when hover.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        buttonBackgroundSize?: number;\n        /**\n         * button spacing.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        spacingBetweenButtons?: number;\n        /**\n         * close button right Margin.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        closeButtonRightMargin?: number;\n        /**\n         * button icon size.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        buttonIconSize?: number;\n        /**\n         * corner radius of button background when hover.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        buttonBackgroundCornerRadius?: number;\n    }\n    /**\n     * Type of allowing the specified of color space.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 8\n     */\n    /**\n     * Type of allowing the specified of color space.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 11\n     */\n    /**\n     * Type of allowing the specified of color space.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    enum ColorSpace {\n        /**\n         * Default color space.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         */\n        /**\n         * Default color space.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Default color space.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        DEFAULT,\n        /**\n         * Wide gamut color space. The specific wide color gamut depends on thr screen.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         */\n        /**\n         * Wide gamut color space. The specific wide color gamut depends on thr screen.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Wide gamut color space. The specific wide color gamut depends on thr screen.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        WIDE_GAMUT\n    }\n    /**\n     * Configuration parameters for window creation.\n     *\n     * @interface Configuration\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 9\n     */\n    /**\n     * Configuration parameters for window creation.\n     *\n     * @interface Configuration\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface Configuration {\n        /**\n         * Indicates window id.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Indicates window id.\n         *\n         * @type { string }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        name: string;\n        /**\n         * Indicates window type\n         *\n         * @type { WindowType }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Indicates window type\n         *\n         * @type { WindowType }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        windowType: WindowType;\n        /**\n         * Indicates window context.\n         *\n         * @type { ?BaseContext }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Indicates window context.\n         *\n         * @type { ?BaseContext }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        ctx?: BaseContext;\n        /**\n         * Indicates display ID.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Indicates display ID.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        displayId?: number;\n        /**\n         * Indicates Parent window id\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Indicates Parent window id\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        parentId?: number;\n        /**\n         * Indicates whether enable window decor, only support dialog, The default value is false.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        decorEnabled?: boolean;\n        /**\n         * Indicates dialog window title when decor enabled.\n         *\n         * @type { ?string }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        title?: string;\n    }\n    /**\n     * Limits of window.\n     *\n     * @interface WindowLimits\n     * @syscap SystemCapability.Window.SessionManager\n     * @since 11\n     */\n    /**\n     * Limits of window.\n     *\n     * @interface WindowLimits\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 12\n     */\n    interface WindowLimits {\n        /**\n         * The maximum width of the window.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * The maximum width of the window.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        maxWidth?: number;\n        /**\n         * The maximum height of the window.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * The maximum height of the window.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        maxHeight?: number;\n        /**\n         * The minimum width of the window.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * The minimum width of the window.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        minWidth?: number;\n        /**\n         * The minimum height of the window.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * The minimum height of the window.\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        minHeight?: number;\n    }\n    /**\n     * Rectangular area of the title buttons relative to the upper right corner of the window.\n     *\n     * @interface TitleButtonRect\n     * @syscap SystemCapability.Window.SessionManager\n     * @since 11\n     */\n    /**\n     * Rectangular area of the title buttons relative to the upper right corner of the window.\n     *\n     * @interface TitleButtonRect\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 12\n     */\n    interface TitleButtonRect {\n        /**\n         * The right of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * The right of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        right: number;\n        /**\n         * The top of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * The top of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        top: number;\n        /**\n         * The width of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * The width of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        width: number;\n        /**\n         * The height of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * The height of the Rect.\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        height: number;\n    }\n    /**\n     * Rect change options\n     *\n     * @interface RectChangeOptions\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 12\n     */\n    interface RectChangeOptions {\n        /**\n         * Rect\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        rect: Rect;\n        /**\n         * Rect change reason\n         *\n         * @type { RectChangeReason }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        reason: RectChangeReason;\n    }\n    /**\n     * Avoid area options\n     *\n     * @interface AvoidAreaOptions\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 12\n     */\n    interface AvoidAreaOptions {\n        /**\n         * Avoid area type\n         *\n         * @type { AvoidAreaType }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        type: AvoidAreaType;\n        /**\n         * Avoid area\n         *\n         * @type { AvoidArea }\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        area: AvoidArea;\n    }\n    /**\n     * Window rect change reason.\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 12\n     */\n    enum RectChangeReason {\n        /**\n         * Default RectChangeReason.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        UNDEFINED = 0,\n        /**\n         * Window maximize.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        MAXIMIZE,\n        /**\n         * Window recover.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        RECOVER,\n        /**\n         * Window move.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        MOVE,\n        /**\n         * Window drag.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        DRAG,\n        /**\n         * Window drag start.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        DRAG_START,\n        /**\n         * Window drag end.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        DRAG_END\n    }\n    /**\n     * Create a window with a specific configuration\n     *\n     * @param { Configuration } config - Parameters for window creation.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the window created.\n     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300001 - Repeated operation.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @throws { BusinessError } 1300008 - The display device is abnormal.\n     * @throws { BusinessError } 1300009 - The parent window is invalid.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 9\n     */\n    /**\n     * Create a window with a specific configuration\n     * When config.windowType == TYPE_FLOAT, the \"ohos.permission.SYSTEM_FLOAT_WINDOW\" permission is required\n     *\n     * @permission ohos.permission.SYSTEM_FLOAT_WINDOW\n     * @param { Configuration } config - Parameters for window creation.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the window created.\n     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n     * @throws { BusinessError } 1300001 - Repeated operation.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300004 - Unauthorized operation.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @throws { BusinessError } 1300008 - The display device is abnormal.\n     * @throws { BusinessError } 1300009 - The parent window is invalid.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Creates a child window or system window. This API uses an asynchronous callback to return the result.\n     *\n     * @permission ohos.permission.SYSTEM_FLOAT_WINDOW\n     * @param { Configuration } config - Parameters used for creating the window.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the window created.\n     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 801 - Capability not supported.createWindow can not work correctly due to limited device capabilities.\n     * @throws { BusinessError } 1300001 - Repeated operation.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300004 - Unauthorized operation.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @throws { BusinessError } 1300009 - The parent window is invalid.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 17\n     */\n    function createWindow(config: Configuration, callback: AsyncCallback<Window>): void;\n    /**\n     * Create a window with a specific configuration\n     *\n     * @param { Configuration } config - Parameters for window creation.\n     * @returns { Promise<Window> } Promise used to return the window created.\n     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300001 - Repeated operation.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @throws { BusinessError } 1300008 - The display device is abnormal.\n     * @throws { BusinessError } 1300009 - The parent window is invalid.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 9\n     */\n    /**\n     * Create a window with a specific configuration\n     * When config.windowType == TYPE_FLOAT, the \"ohos.permission.SYSTEM_FLOAT_WINDOW\" permission is required\n     *\n     * @permission ohos.permission.SYSTEM_FLOAT_WINDOW\n     * @param { Configuration } config - Parameters for window creation.\n     * @returns { Promise<Window> } Promise used to return the window created.\n     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n     * @throws { BusinessError } 1300001 - Repeated operation.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300004 - Unauthorized operation.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @throws { BusinessError } 1300008 - The display device is abnormal.\n     * @throws { BusinessError } 1300009 - The parent window is invalid.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Create a window with a specific configuration\n     * When config.windowType == TYPE_FLOAT, the \"ohos.permission.SYSTEM_FLOAT_WINDOW\" permission is required\n     *\n     * @permission ohos.permission.SYSTEM_FLOAT_WINDOW\n     * @param { Configuration } config - Parameters for window creation.\n     * @returns { Promise<Window> } Promise used to return the window created.\n     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 801 - Capability not supported.createWindow can not work correctly due to limited device capabilities.\n     * @throws { BusinessError } 1300001 - Repeated operation.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300004 - Unauthorized operation.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @throws { BusinessError } 1300009 - The parent window is invalid.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @atomicservice\n     * @since 17\n     */\n    function createWindow(config: Configuration): Promise<Window>;\n    /**\n     * Create a sub window with a specific id and type, only support 7.\n     *\n     * @param { string } id - Indicates window id.\n     * @param { WindowType } type - Indicates window type.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the subwindow created.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @FAModelOnly\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.window#createWindow\n     */\n    function create(id: string, type: WindowType, callback: AsyncCallback<Window>): void;\n    /**\n     * Create a sub window with a specific id and type, only support 7.\n     *\n     * @param { string } id - Indicates window id.\n     * @param { WindowType } type - Indicates window type.\n     * @returns { Promise<Window> } Promise used to return the subwindow created.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @FAModelOnly\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.window#createWindow\n     */\n    function create(id: string, type: WindowType): Promise<Window>;\n    /**\n     * Create a system or float window with a specific id and type.\n     *\n     * @param { BaseContext } ctx - Indicates the context on which the window depends\n     * @param { string } id - Indicates window id.\n     * @param { WindowType } type - Indicates window type.\n     * @returns { Promise<Window> } Promise used to return the window created.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.window#createWindow\n     */\n    function create(ctx: BaseContext, id: string, type: WindowType): Promise<Window>;\n    /**\n     * Create a system or float window with a specific id and type.\n     *\n     * @param { BaseContext } ctx - Indicates the context on which the window depends\n     * @param { string } id - Indicates window id.\n     * @param { WindowType } type - Indicates window type.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the window created.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.window#createWindow\n     */\n    function create(ctx: BaseContext, id: string, type: WindowType, callback: AsyncCallback<Window>): void;\n    /**\n     * Find the window by id.\n     *\n     * @param { string } id - Indicates window id.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the window found.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.window#findWindow\n     */\n    function find(id: string, callback: AsyncCallback<Window>): void;\n    /**\n     * Find the window by id.\n     *\n     * @param { string } id - Indicates window id.\n     * @returns { Promise<Window> } Window found.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 7\n     * @deprecated since 9\n     * @useinstead ohos.window#findWindow\n     */\n    function find(id: string): Promise<Window>;\n    /**\n     * Find the window by name.\n     *\n     * @param { string } name - Indicates window name.\n     * @returns { Window } Window found.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 9\n     */\n    /**\n     * Find the window by name.\n     *\n     * @param { string } name - Indicates window name.\n     * @returns { Window } Window found.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Finds a window based on the name.\n     *\n     * @param { string } name - Window name, that is, the value of name in Configuration.\n     * @returns { Window } Window found.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    function findWindow(name: string): Window;\n    /**\n     * Get the final show window.\n     *\n     * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @FAModelOnly\n     * @since 6\n     * @deprecated since 9\n     * @useinstead ohos.window#getLastWindow\n     */\n    function getTopWindow(callback: AsyncCallback<Window>): void;\n    /**\n     * Get the final show window.\n     *\n     * @returns { Promise<Window> } Promise used to return the top window obtained.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @FAModelOnly\n     * @since 6\n     * @deprecated since 9\n     * @useinstead ohos.window#getLastWindow\n     */\n    function getTopWindow(): Promise<Window>;\n    /**\n     * Get the final show window.\n     *\n     * @param { BaseContext } ctx - Indicates the context on which the window depends\n     * @returns { Promise<Window> } Promise used to return the top window obtained.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.window#getLastWindow\n     */\n    function getTopWindow(ctx: BaseContext): Promise<Window>;\n    /**\n     * Get the final show window.\n     *\n     * @param { BaseContext } ctx - Indicates the context on which the window depends\n     * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.window#getLastWindow\n     */\n    function getTopWindow(ctx: BaseContext, callback: AsyncCallback<Window>): void;\n    /**\n     * Get the final show window.\n     *\n     * @param { BaseContext } ctx - Current application context.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 9\n     */\n    /**\n     * Get the final show window.\n     *\n     * @param { BaseContext } ctx - Current application context.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtains the top window of the current application. This API uses an asynchronous callback to return the result.\n     * If no child window is available, the main window of the application is returned.\n     *\n     * @param { BaseContext } ctx - Current application context.\n     * @param { AsyncCallback<Window> } callback - Callback used to return the top window obtained.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal. Top window or main window is null or destroyed.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function getLastWindow(ctx: BaseContext, callback: AsyncCallback<Window>): void;\n    /**\n     * Get the final show window.\n     *\n     * @param { BaseContext } ctx - Current application context.\n     * @returns { Promise<Window> } Promise used to return the top window obtained.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 9\n     */\n    /**\n     * Get the final show window.\n     *\n     * @param { BaseContext } ctx - Current application context.\n     * @returns { Promise<Window> } Promise used to return the top window obtained.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Obtains the top window of the current application. This API uses a promise to return the result.\n     * If no child window is available, the main window of the application is returned.\n     *\n     * @param { BaseContext } ctx - Current application context.\n     * @returns { Promise<Window> } Promise used to return the top window obtained.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 1300002 - This window state is abnormal. Top window or main window is null or destroyed.\n     * @throws { BusinessError } 1300006 - This window context is abnormal.\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    function getLastWindow(ctx: BaseContext): Promise<Window>;\n    /**\n     * Shift window focus within the same application. And the window type contains only main window and subwindow.\n     *\n     * @param { number } sourceWindowId - Window id which the focus shift from.\n     * @param { number } targetWindowId - Window id which the focus shift to.\n     * @returns { Promise<void> } - Promise that returns no value.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @throws { BusinessError } 1300004 - Unauthorized operation.\n     * @syscap SystemCapability.Window.SessionManager\n     * @since 11\n     */\n    /**\n     * Shifts the window focus from the source window to the target window in the same application.\n     * The window focus can be shifted between the main window and a child window.\n     *\n     * @param { number } sourceWindowId - Window id which the focus shift from.\n     * @param { number } targetWindowId - Window id which the focus shift to.\n     * @returns { Promise<void> } - Promise that returns no value.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @throws { BusinessError } 1300004 - Unauthorized operation.\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 12\n     */\n    function shiftAppWindowFocus(sourceWindowId: number, targetWindowId: number): Promise<void>;\n    /**\n     * Transfers an input event from one window to another within the same application, particularly in split-window scenarios.\n     * It takes effect only for the main window and its child windows on 2-in-1 devices.\n     *\n     * @param { number } sourceWindowId - ID of the source window. You are advised to call getWindowProperties() to obtain the window ID.\n     * @param { number } targetWindowId - ID of the target window. You are advised to call getWindowProperties() to obtain the window ID.\n     * @returns { Promise<void> } - Promise that returns no value.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types.\n     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @throws { BusinessError } 1300004 - Unauthorized operation.\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 15\n     */\n    function shiftAppWindowPointerEvent(sourceWindowId: number, targetWindowId: number): Promise<void>;\n    \n    /**\n     * Get info of visible windows.\n     *\n     * @permission ohos.permission.VISIBLE_WINDOW_INFO\n     * @returns { Promise<Array<WindowInfo>> } - Promise that returns windowInfo list.\n     * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n     * @throws { BusinessError } 801 - Capability not supported. Function getVisibleWindowInfo can not work correctly due to limited device capabilities.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @syscap SystemCapability.Window.SessionManager\n     * @since 18\n     */\n    function getVisibleWindowInfo(): Promise<Array<WindowInfo>>;\n    /**\n     * Get windows by coordinate.\n     *\n     * @param { number } displayId - Indicate the id of display.\n     * @param { number } windowNumber - Indicate the Number of query windows.\n     * @param { number } x - Indicate the X-coordinate of the window.\n     * @param { number } y - Indicate the Y-coordinate of the window.\n     * @returns { Promise<Array<Window>> } Promise used to return the window.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 14\n     */\n    function getWindowsByCoordinate(displayId: number, windowNumber?: number, x?: number, y?: number): Promise<Array<Window>>;\n    /**\n     * Get Layout info of all windows on the selected display.\n     *\n     * @param { number } displayId - Indicate the id of display.\n     * @returns { Promise<Array<WindowLayoutInfo>> } Promise used to return the WindowLayoutInfo.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types;\n     *                                                                  3. Parameter verification failed.\n     * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n     * @throws { BusinessError } 1300002 - This window state is abnormal.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 15\n     */\n    /**\n     * Get Layout info of all windows on the selected display.\n     *\n     * @param { number } displayId - Indicate the id of display.\n     * @returns { Promise<Array<WindowLayoutInfo>> } Promise used to return the WindowLayoutInfo.\n     * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n     *                                                                  2. Incorrect parameter types;\n     *                                                                  3. Parameter verification failed.\n     * @throws { BusinessError } 801 - Capability not supported. function getAllWindowLayoutInfo can not work correctly due to limited device capabilities.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 19\n     */\n    function getAllWindowLayoutInfo(displayId: number): Promise<Array<WindowLayoutInfo>>;\n    /**\n     * List the window modes of the foreground window on the specified display.\n     *\n     * @param { number } displayId - Indicate the id of display.\n     * @returns { Promise<number> } Promise used to return the window modes.\n     * @throws { BusinessError } 801 - Capability not supported. function getGlobalWindowMode can not work correctly due to limited device capabilities.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range.\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 20\n     */\n    function getGlobalWindowMode(displayId?: number): Promise<number>;\n    /**\n     * Sets starting window background color\n     *\n     * @param { string } moduleName - module Name that needs to be set.\n     * @param { string } abilityName - ability Name that needs to be set.\n     * @param { ColorMetrics } color - Color metrics.\n     * @returns { Promise<void> } Promise that returns no value.\n     * @throws { BusinessError } 801 - Capability not supported.function setStartWindowBackgroundColor can not to work correctly due to limited device capabilities.\n     * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n     * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range.\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 20\n     */\n    function setStartWindowBackgroundColor(moduleName: string, abilityName: string, color: ColorMetrics): Promise<void>;\n    /**\n     * Display orientation\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 9\n     */\n    /**\n     * Display orientation\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Display orientation\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    enum Orientation {\n        /**\n         * Default value. The direction mode is not clearly defined. It is determined by the system.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Default value. The direction mode is not clearly defined. It is determined by the system.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Default value. The direction mode is not clearly defined. It is determined by the system.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        UNSPECIFIED = 0,\n        /**\n         * Display in portrait orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Display in portrait orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Display in portrait orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        PORTRAIT = 1,\n        /**\n         * Display in landscape orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Display in landscape orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Display in landscape orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        LANDSCAPE = 2,\n        /**\n         * Display in inverted portrait orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Display in inverted portrait orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Display in inverted portrait orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        PORTRAIT_INVERTED = 3,\n        /**\n         * Display in inverted landscape orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Display in inverted landscape orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Display in inverted landscape orientation.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        LANDSCAPE_INVERTED = 4,\n        /**\n         * Follow the rotation of the sensor, ignore auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Follow the rotation of the sensor, ignore auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        AUTO_ROTATION = 5,\n        /**\n         * Follow the rotation of the sensor, only work in the vertical direction, ignore auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Follow the rotation of the sensor, only work in the vertical direction, ignore auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        AUTO_ROTATION_PORTRAIT = 6,\n        /**\n         * Follow the rotation of the sensor, only work in the horizontal direction, ignore auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Follow the rotation of the sensor, only work in the horizontal direction, ignore auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        AUTO_ROTATION_LANDSCAPE = 7,\n        /**\n         * Follow the rotation of the sensor, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Follow the rotation of the sensor, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        AUTO_ROTATION_RESTRICTED = 8,\n        /**\n         * Follow the rotation of the sensor, only work in the vertical direction, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Follow the rotation of the sensor, only work in the vertical direction, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        AUTO_ROTATION_PORTRAIT_RESTRICTED = 9,\n        /**\n         * Follow the rotation of the sensor, only work in the horizontal direction, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Follow the rotation of the sensor, only work in the horizontal direction, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        AUTO_ROTATION_LANDSCAPE_RESTRICTED = 10,\n        /**\n         * Locked mode, keep the same direction as previous one.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Locked mode, keep the same direction as previous one.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        LOCKED = 11,\n        /**\n         * Follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        AUTO_ROTATION_UNSPECIFIED = 12,\n        /**\n         * Display in portrait orientation, and then, follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        USER_ROTATION_PORTRAIT = 13,\n        /**\n         * Display in landscape orientation, and then, follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        USER_ROTATION_LANDSCAPE = 14,\n        /**\n         * Display in inverted portrait orientation, and then, follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        USER_ROTATION_PORTRAIT_INVERTED = 15,\n        /**\n         * Display in inverted landscape orientation, and then, follow the rotation of the sensor, determined by the system, controlled by auto rotation lock.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        USER_ROTATION_LANDSCAPE_INVERTED = 16,\n        /**\n         * Follow the desktop rotate mode.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        FOLLOW_DESKTOP = 17\n    }\n    /**\n     * Enum for window callback event type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 10\n     */\n    /**\n     * Enum for window callback event type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    enum WindowEventType {\n        /**\n         * The value of window event is window show\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * The value of window event is window show\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        WINDOW_SHOWN = 1,\n        /**\n         * The value of window event is window active\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * The value of window event is window active\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        WINDOW_ACTIVE = 2,\n        /**\n         * The value of window event is window inactive\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * The value of window event is window inactive\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        WINDOW_INACTIVE = 3,\n        /**\n         * The value of window event is window hide\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * The value of window event is window hide\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        WINDOW_HIDDEN = 4,\n        /**\n         * The value of window event is window destroy\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 11\n         */\n        WINDOW_DESTROYED = 7\n    }\n    /**\n     * Enum for window maximize presentation\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 12\n     */\n    enum MaximizePresentation {\n        /**\n         * The value means follow immersive state which set by app\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        FOLLOW_APP_IMMERSIVE_SETTING = 0,\n        /**\n         * The value means exit immersive state\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        EXIT_IMMERSIVE = 1,\n        /**\n         * The value means enter immersive state\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        ENTER_IMMERSIVE = 2,\n        /**\n         * The value means enter immersive state and the title bar and dock bar cannot be shown, when the mouse hovers over hot area.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        ENTER_IMMERSIVE_DISABLE_TITLE_AND_DOCK_HOVER = 3\n    }\n    /**\n     * the optional move configuration used in moveWindowToAsync/moveWindowToGlobal\n     *\n     * @interface MoveConfiguration\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 15\n     */\n    interface MoveConfiguration {\n        /**\n         * The display id of the screen\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        displayId?: number;\n    }\n    /**\n     * Specific system bar type.\n     *\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Specific system bar type.\n     *\n     * @typedef {'status' | 'navigation' | 'navigationIndicator'}\n     * @syscap SystemCapability.Window.SessionManager\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    type SpecificSystemBar = 'status' | 'navigation' | 'navigationIndicator';\n    /**\n     * Describes the window transition type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 20\n     */\n    enum WindowTransitionType {\n        /**\n         * window transition type destroy\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        DESTROY = 0\n    }\n    /**\n     * Describes the window animation curve\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 20\n     */\n    enum WindowAnimationCurve {\n        /**\n         * animation curve type linear\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        LINEAR = 0,\n        /**\n         * animation curve type interpolation spring\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        INTERPOLATION_SPRING = 1\n    }\n    /**\n     * window animation config\n     *\n     * @interface WindowAnimationConfig\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 20\n     */\n    interface WindowAnimationConfig {\n        /**\n         * curve of the animation\n         *\n         * @type { WindowAnimationCurve }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        curve: WindowAnimationCurve;\n        /**\n         * duration of the animation\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        duration?: number;\n        /**\n         * param of animation curve\n         *\n         * @type { ?WindowAnimationCurveParam }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        param?: WindowAnimationCurveParam;\n    }\n    /**\n     * The animation configuration of window transition\n     *\n     * @interface TransitionAnimation\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 20\n     */\n    interface TransitionAnimation {\n        /**\n         * The config of window animation\n         *\n         * @type { WindowAnimationConfig }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        config: WindowAnimationConfig;\n        /**\n         * The opacity of window\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        opacity?: number;\n    }\n    /**\n     * The information of keyboard\n     *\n     * @interface KeyboardInfo\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 18\n     */\n    interface KeyboardInfo {\n        /**\n         * The position and size of keyboard before animation.\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        beginRect: Rect;\n        /**\n         * The position and size of keyboard after animation completed.\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        endRect: Rect;\n        /**\n         * Indicates whether animation exists.\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        animated?: boolean;\n        /**\n         * The configuration of keyboard animation.\n         *\n         * @type { ?WindowAnimationConfig }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        config?: WindowAnimationConfig;\n    }\n    /**\n     * Window\n     *\n     * @interface Window\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 6\n     */\n    /**\n     * Window\n     *\n     * @interface Window\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface Window {\n        /**\n         * Show window.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#showWindow\n         */\n        show(callback: AsyncCallback<void>): void;\n        /**\n         * Show window.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#showWindow\n         */\n        show(): Promise<void>;\n        /**\n         * Show window.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Show window.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Shows this window. This API uses an asynchronous callback to return the result.\n         * This API takes effect only for a system window or an application child window.\n         * For the main window of an application, this API moves it at the top when the main window is already displayed.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        showWindow(callback: AsyncCallback<void>): void;\n        /**\n         * Show window.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Show window.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Shows this window. This API uses a promise to return the result.\n         * This API takes effect only for a system window or an application child window.\n         * For the main window of an application, this API moves it at the top when the main window is already displayed.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        showWindow(): Promise<void>;\n        /**\n         * Show window.\n         *\n         * @param { ShowWindowOptions } options - options of window shown\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Function showWindow can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        showWindow(options: ShowWindowOptions): Promise<void>;\n        /**\n         * Destroy the window.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#destroyWindow\n         */\n        destroy(callback: AsyncCallback<void>): void;\n        /**\n         * Destroy the window.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#destroyWindow\n         */\n        destroy(): Promise<void>;\n        /**\n         * Destroy the window.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Destroy the window.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Destroys this window. This API uses an asynchronous callback to return the result.\n         * This API takes effect only for a system window or an application child window.\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        destroyWindow(callback: AsyncCallback<void>): void;\n        /**\n         * Destroy the window.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Destroy the window.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Destroys this window. This API uses an asynchronous callback to return the result.\n         * This API takes effect only for a system window or an application child window.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        destroyWindow(): Promise<void>;\n        /**\n         * Set the position of a window.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#moveWindowTo\n         */\n        moveTo(x: number, y: number): Promise<void>;\n        /**\n         * Set the position of a window.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#moveWindowTo\n         */\n        moveTo(x: number, y: number, callback: AsyncCallback<void>): void;\n        /**\n         * Set the position of a window.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the position of a window.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Set the position of a window.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        moveWindowTo(x: number, y: number): Promise<void>;\n        /**\n         * Set the position of a window.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the position of a window.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Set the position of a window.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        moveWindowTo(x: number, y: number, callback: AsyncCallback<void>): void;\n        /**\n         * Move window to the position.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300010 - The operation in the current window status is invalid.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        moveWindowToAsync(x: number, y: number): Promise<void>;\n        /**\n         * Move window to the position.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window.\n         * @param { number } y - Indicate the Y-coordinate of the window.\n         * @param { ?MoveConfiguration } moveConfiguration - Indicate the window move configuration.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300010 - The operation in the current window status is invalid.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        moveWindowToAsync(x: number, y: number, moveConfiguration?: MoveConfiguration): Promise<void>;\n        /**\n         * Move window to the position relative to current screen.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window relative to current screen.\n         * @param { number } y - Indicate the Y-coordinate of the window relative to current screen.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300010 - The operation in the current window status is invalid.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 13\n         */\n        moveWindowToGlobal(x: number, y: number): Promise<void>;\n        /**\n         * Move window to the position relative to current screen.\n         *\n         * @param { number } x - Indicate the X-coordinate of the window relative to current screen.\n         * @param { number } y - Indicate the Y-coordinate of the window relative to current screen.\n         * @param { ?MoveConfiguration } moveConfiguration - Indicate the window move configuration.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300010 - The operation in the current window status is invalid.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        moveWindowToGlobal(x: number, y: number, moveConfiguration?: MoveConfiguration): Promise<void>;\n        /**\n         * Set the size of a window .\n         *\n         * @param { number } width - Indicates the width of the window.\n         * @param { number } height - Indicates the height of the window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#resize\n         */\n        resetSize(width: number, height: number): Promise<void>;\n        /**\n         * Set the size of a window .\n         *\n         * @param { number } width - Indicates the width of the window.\n         * @param { number } height - Indicates the height of the window.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#resize\n         */\n        resetSize(width: number, height: number, callback: AsyncCallback<void>): void;\n        /**\n         * Set the size of a window .\n         *\n         * @param { number } width - Indicates the width of the window. The width should be greater than 0.\n         * @param { number } height - Indicates the height of the window. The height should be greater than 0.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the size of a window .\n         *\n         * @param { number } width - Indicates the width of the window. The width should be greater than 0.\n         * @param { number } height - Indicates the height of the window. The height should be greater than 0.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Set the size of a window .\n         *\n         * @param { number } width - Indicates the width of the window. The width should be greater than 0.\n         * @param { number } height - Indicates the height of the window. The height should be greater than 0.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        resize(width: number, height: number): Promise<void>;\n        /**\n         * Set the size of a window .\n         *\n         * @param { number } width - Indicates the width of the window. The width should be greater than 0.\n         * @param { number } height - Indicates the height of the window. The height should be greater than 0.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the size of a window .\n         *\n         * @param { number } width - Indicates the width of the window. The width should be greater than 0.\n         * @param { number } height - Indicates the height of the window. The height should be greater than 0.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Set the size of a window .\n         *\n         * @param { number } width - Indicates the width of the window. The width should be greater than 0.\n         * @param { number } height - Indicates the height of the window. The height should be greater than 0.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        resize(width: number, height: number, callback: AsyncCallback<void>): void;\n        /**\n         * Set the size of a window.\n         *\n         * @param { number } width - Indicates the width of the window. The width should be greater than 0.\n         * @param { number } height - Indicates the height of the window. The height should be greater than 0.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300010 - The operation in the current window status is invalid.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        resizeAsync(width: number, height: number): Promise<void>;\n        /**\n         * Set whether to follow parent window layout. Only sub windows and dialogs are available.\n         *\n         * @param { boolean } enabled - If true, this window updates the layout follow the parent window.\n         *                              If false, this window does not update the layout follow the parent window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @stagemodelonly\n         * @atomicservice\n         * @since 17\n         */\n        setFollowParentWindowLayoutEnabled(enabled: boolean): Promise<void>;\n        /**\n         * Get the properties of current window\n         *\n         * @param { AsyncCallback<WindowProperties> } callback - Callback used to return the window properties.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#getWindowProperties\n         */\n        getProperties(callback: AsyncCallback<WindowProperties>): void;\n        /**\n         * Get the window rectangular area quadruple {left,top,weight,height}, left and top represent relative to screen coordinates\n         * and are affected by parent window scaling, weight and height are the scaling width and height.\n         *\n         * @returns { Rect } The quadruple {left,top,weight,height} represents respectively the X-coordinate\n         * and Y-coordinate of the window relative to current screen, the scaled window width and scaled window height.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 13\n         */\n        getGlobalRect(): Rect;\n        /**\n         * Get the properties of current window\n         *\n         * @returns { Promise<WindowProperties> } Promise used to return the window properties.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#getWindowProperties\n         */\n        getProperties(): Promise<WindowProperties>;\n        /**\n         * Get the properties of current window\n         *\n         * @returns { WindowProperties } Return the window properties.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Get the properties of current window\n         *\n         * @returns { WindowProperties } Return the window properties.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Get the properties of current window\n         *\n         * @returns { WindowProperties } Return the window properties.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getWindowProperties(): WindowProperties;\n        /**\n         * Get the window density of current window.\n         *\n         * @returns { WindowDensityInfo } Return system density, default density and custom density of window.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        getWindowDensityInfo(): WindowDensityInfo;\n        /**\n         * Get the avoid area\n         *\n         * @param { AvoidAreaType } type - Type of the area\n         * @param { AsyncCallback<AvoidArea> } callback - Callback used to return the area.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#getWindowAvoidArea\n         */\n        getAvoidArea(type: AvoidAreaType, callback: AsyncCallback<AvoidArea>): void;\n        /**\n         * Get the avoid area\n         *\n         * @param { AvoidAreaType } type - Type of the area\n         * @returns { Promise<AvoidArea> } Area where the window cannot be displayed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#getWindowAvoidArea\n         */\n        getAvoidArea(type: AvoidAreaType): Promise<AvoidArea>;\n        /**\n         * Get the avoid area\n         *\n         * @param { AvoidAreaType } type - Type of the area\n         * @returns { AvoidArea } Area where the window cannot be displayed.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Get the avoid area\n         *\n         * @param { AvoidAreaType } type - Type of the area\n         * @returns { AvoidArea } Area where the window cannot be displayed.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Get the avoid area\n         *\n         * @param { AvoidAreaType } type - Type of the area\n         * @returns { AvoidArea } Area where the window cannot be displayed.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getWindowAvoidArea(type: AvoidAreaType): AvoidArea;\n        /**\n         * Set whether system window type could obtain avoid area.\n         *\n         * @param { boolean } enabled - If true, the system window type can obtain avoid area. If false, the avoid area obtained by the system window type will always be empty.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        setSystemAvoidAreaEnabled(enabled: boolean): Promise<void>;\n        /**\n         * Get whether system window type could obtain avoid area.\n         *\n         * @returns { boolean } enable - If true, the system window type can obtain avoid area. If false, the avoid area obtained by the system window type will always be empty.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        isSystemAvoidAreaEnabled(): boolean;\n        /**\n         * Set the flag of the window is shown full screen\n         *\n         * @param { boolean } isFullScreen - The flag of the window is shown full screen\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowSystemBarEnable\n         */\n        setFullScreen(isFullScreen: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Set the flag of the window is shown full screen\n         *\n         * @param { boolean } isFullScreen - The flag of the window is shown full screen\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowSystemBarEnable\n         */\n        setFullScreen(isFullScreen: boolean): Promise<void>;\n        /**\n         * Set the property of the window can layout in full screen\n         *\n         * @param { boolean } isLayoutFullScreen - The window can layout in full screen\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowLayoutFullScreen\n         */\n        setLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Set the property of the window can layout in full screen\n         *\n         * @param { boolean } isLayoutFullScreen - The window can layout in full screen\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowLayoutFullScreen\n         */\n        setLayoutFullScreen(isLayoutFullScreen: boolean): Promise<void>;\n        /**\n         * Set the property of the window can layout in full screen\n         *\n         * @param { boolean } isLayoutFullScreen - The window can layout in full screen\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the property of the window can layout in full screen\n         *\n         * @param { boolean } isLayoutFullScreen - The window can layout in full screen\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         * @deprecated since 12\n         * @useinstead ohos.window.Window#setWindowLayoutFullScreen\n         */\n        setWindowLayoutFullScreen(isLayoutFullScreen: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether the main window layout or the child window layout is immersive.\n         *\n         * @param { boolean } isLayoutFullScreen - Whether the window layout is immersive\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether the main window layout or the child window layout is immersive.\n         *\n         * @param { boolean } isLayoutFullScreen - Whether the window layout is immersive\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setWindowLayoutFullScreen(isLayoutFullScreen: boolean): Promise<void>;\n        /**\n         * Set the system bar to have visible.\n         *\n         * @param { Array<'status' | 'navigation'> } names - The set of system bar\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowSystemBarEnable\n         */\n        setSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncCallback<void>): void;\n        /**\n         * Set the system bar to have visible.\n         *\n         * @param { Array<'status' | 'navigation'> } names - The set of system bar\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowSystemBarEnable\n         */\n        setSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void>;\n        /**\n         * Set the system bar to have visible.\n         *\n         * @param { Array<'status' | 'navigation'> } names - The set of system bar\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the system bar to have visible.\n         *\n         * @param { Array<'status' | 'navigation'> } names - The set of system bar\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Set the system bar to have visible.\n         *\n         * @param { Array<'status' | 'navigation'> } names - The set of system bar\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1.Mandatory parameters are left unspecified;\n         *                                                                  2.Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         * @deprecated since 12\n         * @useinstead ohos.window.Window#setWindowSystemBarEnable\n         */\n        setWindowSystemBarEnable(names: Array<'status' | 'navigation'>, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether to show the system bar of the main window.\n         *\n         * @param { Array<'status' | 'navigation'> } names - The set of system bar types\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether to show the system bar of the main window.\n         *\n         * @param { Array<'status' | 'navigation'> } names - The set of system bar types\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets whether to show the system bar of the main window.\n         *\n         * @param { Array<'status' | 'navigation'> } names - The set of system bar types\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1.Mandatory parameters are left unspecified;\n         *                                                                  2.Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setWindowSystemBarEnable(names: Array<'status' | 'navigation'>): Promise<void>;\n        /**\n         * Sets whether to show the specific system bar of the main window.\n         *\n         * @param {SpecificSystemBar} name - Type of the system bar to be shown or hidden\n         * @param {boolean} enable - Show specific system bar if true, or hide specific system bar if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws {BusinessError} 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                2. Incorrect parameter types.\n         * @throws {BusinessError} 1300002 - This window state is abnormal.\n         * @throws {BusinessError} 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Sets whether to show the specific system bar of the main window.\n         *\n         * @param {SpecificSystemBar} name - Type of the system bar to be shown or hidden\n         * @param {boolean} enable - Show specific system bar if true, or hide specific system bar if false.\n         * @param {boolean} enableAnimation - Whether using animation during this setting, using animation if true or not using animation if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws {BusinessError} 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                2. Incorrect parameter types.\n         * @throws {BusinessError} 1300002 - This window state is abnormal.\n         * @throws {BusinessError} 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setSpecificSystemBarEnabled(name: SpecificSystemBar, enable: boolean, enableAnimation?: boolean): Promise<void>;\n        /**\n         * Set the properties of system bar\n         *\n         * @param { SystemBarProperties } systemBarProperties - The properties of system bar\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowSystemBarProperties\n         */\n        setSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback<void>): void;\n        /**\n         * Set the properties of system bar\n         *\n         * @param { SystemBarProperties } systemBarProperties - The properties of system bar\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowSystemBarProperties\n         */\n        setSystemBarProperties(systemBarProperties: SystemBarProperties): Promise<void>;\n        /**\n         * Set the properties of system bar\n         *\n         * @param { SystemBarProperties } systemBarProperties - The properties of system bar\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the properties of system bar\n         *\n         * @param { SystemBarProperties } systemBarProperties - The properties of system bar\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         * @deprecated since 12\n         * @useinstead ohos.window.Window#setWindowSystemBarProperties\n         */\n        setWindowSystemBarProperties(systemBarProperties: SystemBarProperties, callback: AsyncCallback<void>): void;\n        /**\n         * Set the properties of system bar\n         *\n         * @param { SystemBarProperties } systemBarProperties - The properties of system bar\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the properties of system bar\n         *\n         * @param { SystemBarProperties } systemBarProperties - The properties of system bar\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setWindowSystemBarProperties(systemBarProperties: SystemBarProperties): Promise<void>;\n        /**\n         * Get the properties of system bar\n         *\n         * @returns { SystemBarProperties } Return system bar properties.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        getWindowSystemBarProperties(): SystemBarProperties;\n        /**\n         * Set the content color of the status bar.\n         *\n         * @param { ColorMetrics } color - Content color of the status bar\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported on this device.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        setStatusBarColor(color: ColorMetrics): Promise<void>;\n        /**\n         * Get the properties of the status bar.\n         *\n         * @returns { StatusBarProperty } Return status bar properties.\n         * @throws { BusinessError } 801 - Capability not supported on this device.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        getStatusBarProperty(): StatusBarProperty;\n        /**\n         * Set whether to disable the gesture back function.\n         *\n         * @param { boolean } enabled - If true then enable the gesture back function, false then disable the gesture back function.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 13\n         */\n        setGestureBackEnabled(enabled: boolean): Promise<void>;\n        /**\n         * Get whether the gesture back function is currently disabled.\n         *\n         * @returns { boolean } enabled - If true then the gesture back function is currently enabled, false then the gesture back function is currently disabled.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 13\n         */\n        isGestureBackEnabled(): boolean;\n        /**\n         * Set the preferred orientation config of the window\n         *\n         * @param { Orientation } orientation - The orientation config of the window\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the preferred orientation config of the window\n         *\n         * @param { Orientation } orientation - The orientation config of the window\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the preferred orientation for the main window.\n         * This API uses a promise to return the result.\n         * It does not take effect on devices that do not support rotation with the sensor, on 2-in-1 devices or for the child window.\n         *\n         * @param { Orientation } orientation - The orientation config of the window\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setPreferredOrientation(orientation: Orientation): Promise<void>;\n        /**\n         * Set the preferred orientation config of the window\n         *\n         * @param { Orientation } orientation - The orientation config of the window\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Set the preferred orientation config of the window\n         *\n         * @param { Orientation } orientation - The orientation config of the window\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the preferred orientation for the main window.\n         * This API uses an asynchronous callback to return the result.\n         * It does not take effect on devices that do not support rotation with the sensor, on 2-in-1 devices or for the child window.\n         *\n         * @param { Orientation } orientation - The orientation config of the window\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setPreferredOrientation(orientation: Orientation, callback: AsyncCallback<void>): void;\n        /**\n         * Obtains the orientation of the main window.\n         * This API can be called only by the main window.\n         *\n         * @returns { Orientation } orientation - The orientation config of the window\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        getPreferredOrientation(): Orientation;\n        /**\n         * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path - Path of the page from which the content will be loaded. The path is configured in the main_pages.json file of the project.\n         * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContent(path: string, storage: LocalStorage, callback: AsyncCallback<void>): void;\n        /**\n         * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @param { LocalStorage } storage - The data object shared within the content instance loaded by the window\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path - \tPath of the page from which the content will be loaded. The path is configured in the main_pages.json file of the project.\n         * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContent(path: string, storage: LocalStorage): Promise<void>;\n        /**\n         * Loads content from a page to this window. This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setUIContent\n         */\n        loadContent(path: string, callback: AsyncCallback<void>): void;\n        /**\n         * Loads content from a page to this window. This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setUIContent\n         */\n        loadContent(path: string): Promise<void>;\n        /**\n         * Get the UIContext associate with the window content.\n         *\n         * @returns { UIContext } the object of UIContext.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         *                                                                   2. Incorrect parameter types;\n         *                                                                   3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @stagemodelonly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtain a UIContext instance.\n         *\n         * @returns { UIContext } UIContext instance obtained.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getUIContext(): UIContext;\n        /**\n         * Loads content\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Loads content\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to this window.\n         * This API uses an asynchronous callback to return the result.\n         *\n         * @param { string } path - Path of the page from which the content will be loaded.\n         *                          In the stage model, the path is configured in the main_pages.json file of the project.\n         *                          In the FA model, the path is configured in the config.json file of the project.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setUIContent(path: string, callback: AsyncCallback<void>): void;\n        /**\n         * Loads content\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Loads content\n         *\n         * @param { string } path - Path of the page to which the content will be loaded\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to this window.\n         * This API uses a promise to return the result.\n         *\n         * @param { string } path - Path of the page from which the content will be loaded.\n         *                          In the stage model, the path is configured in the main_pages.json file of the project.\n         *                          In the FA model, the path is configured in the config.json file of the project.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setUIContent(path: string): Promise<void>;\n        /**\n         * Loads the content of a named route page to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content.\n         * Exercise caution when using it.\n         *\n         * @param { string } name - Name of the named route page.\n         * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContentByName(name: string, storage: LocalStorage, callback: AsyncCallback<void>): void;\n        /**\n         * Loads the content of a named route page to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content.\n         * Exercise caution when using it.\n         *\n         * @param { string } name - Name of the named route page.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContentByName(name: string, callback: AsyncCallback<void>): void;\n        /**\n         * Loads the content of a named route page to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content.\n         * Exercise caution when using it.\n         *\n         * @param { string } name - Name of the named route page.\n         * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContentByName(name: string, storage?: LocalStorage): Promise<void>;\n        /**\n         * Checks whether the window is displayed\n         *\n         * @param { AsyncCallback<boolean> } callback - Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#isWindowShowing\n         */\n        isShowing(callback: AsyncCallback<boolean>): void;\n        /**\n         * Checks whether the window is displayed\n         *\n         * @returns { Promise<boolean> } Whether the window is displayed. The value true means that the window is displayed, and false means the opposite.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#isWindowShowing\n         */\n        isShowing(): Promise<boolean>;\n        /**\n         * Checks whether the window is displayed\n         *\n         * @returns { boolean } Whether the window is displayed. The value true means that the window is displayed, and false means the opposite.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Checks whether the window is displayed\n         *\n         * @returns { boolean } Whether the window is displayed. The value true means that the window is displayed, and false means the opposite.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Checks whether the window is displayed\n         *\n         * @returns { boolean } Whether the window is displayed. The value true means that the window is displayed, and false means the opposite.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        isWindowShowing(): boolean;\n        /**\n         * Register the callback of windowSizeChange\n         *\n         * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.\n         * @param { Callback<Size> } callback - Callback used to return the window size.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Register the callback of windowSizeChange\n         *\n         * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.\n         * @param { Callback<Size> } callback - Callback used to return the window size.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Register the callback of windowSizeChange\n         *\n         * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.\n         * @param { Callback<Size> } callback - Callback used to return the window size.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'windowSizeChange', callback: Callback<Size>): void;\n        /**\n         * Unregister the callback of windowSizeChange\n         *\n         * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.\n         * @param { Callback<Size> } callback - Callback used to return the window size.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Unregister the callback of windowSizeChange\n         *\n         * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.\n         * @param { Callback<Size> } callback - Callback used to return the window size.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Unregister the callback of windowSizeChange\n         *\n         * @param { 'windowSizeChange' } type - The value is fixed at 'windowSizeChange', indicating the window size change event.\n         * @param { Callback<Size> } callback - Callback used to return the window size.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'windowSizeChange', callback?: Callback<Size>): void;\n        /**\n         * Register the callback of systemAvoidAreaChange\n         *\n         * @param { 'systemAvoidAreaChange' } type - The value is fixed at 'systemAvoidAreaChange', indicating the event of changes to the avoid area.\n         * @param { Callback<AvoidArea> } callback - Callback used to return the area.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#on_avoidAreaChange\n         */\n        on(type: 'systemAvoidAreaChange', callback: Callback<AvoidArea>): void;\n        /**\n         * Unregister the callback of systemAvoidAreaChange\n         *\n         * @param { 'systemAvoidAreaChange' } type - The value is fixed at 'systemAvoidAreaChange', indicating the event of changes to the avoid area.\n         * @param { Callback<AvoidArea> } callback - Callback used to return the area.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#off_avoidAreaChange\n         */\n        off(type: 'systemAvoidAreaChange', callback?: Callback<AvoidArea>): void;\n        /**\n         * Register the callback of avoidAreaChange\n         *\n         * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.\n         * @param { Callback<{ type: AvoidAreaType, area: AvoidArea }> } callback - Callback used to return the area.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         *                                                                   2. Incorrect parameter types;\n         *                                                                   3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Register the callback of avoidAreaChange\n         *\n         * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.\n         * @param { Callback<{ type: AvoidAreaType, area: AvoidArea }> } callback - Callback used to return the area.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         *                                                                   2. Incorrect parameter types;\n         *                                                                   3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Register the callback of avoidAreaChange\n         *\n         * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.\n         * @param { Callback<AvoidAreaOptions> } callback - Callback used to return the area.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         *                                                                   2. Incorrect parameter types;\n         *                                                                   3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'avoidAreaChange', callback: Callback<AvoidAreaOptions>): void;\n        /**\n         * Unregister the callback of avoidAreaChange\n         *\n         * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.\n         * @param { Callback<{ type: AvoidAreaType, area: AvoidArea }> } callback - Callback used to return the area.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types;\n         *                                                                   2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Unregister the callback of avoidAreaChange\n         *\n         * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.\n         * @param { Callback<{ type: AvoidAreaType, area: AvoidArea }> } callback - Callback used to return the area.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types;\n         *                                                                   2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Unregister the callback of avoidAreaChange\n         *\n         * @param { 'avoidAreaChange' } type - The value is fixed at 'avoidAreaChange', indicating the event of changes to the avoid area.\n         * @param { Callback<AvoidAreaOptions> } callback - Callback used to return the area.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Incorrect parameter types;\n         *                                                                   2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'avoidAreaChange', callback?: Callback<AvoidAreaOptions>): void;\n        /**\n         * Register the callback of keyboardHeightChange\n         *\n         * @param { 'keyboardHeightChange' } type - The value is fixed at 'keyboardHeightChange', indicating the keyboard height change event.\n         * @param { Callback<number> } callback - Callback used to return the current keyboard height, which is an integer, in px.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Register the callback of keyboardHeightChange\n         *\n         * @param { 'keyboardHeightChange' } type - The value is fixed at 'keyboardHeightChange', indicating the keyboard height change event.\n         * @param { Callback<number> } callback - Callback used to return the current keyboard height, which is an integer, in px.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'keyboardHeightChange', callback: Callback<number>): void;\n        /**\n         * Unregister the callback of keyboardHeightChange\n         *\n         * @param { 'keyboardHeightChange' } type - The value is fixed at 'keyboardHeightChange', indicating the keyboard height change event.\n         * @param { Callback<number> } callback - Callback used to return the current keyboard height, which is an integer, in px.\n         * If a value is passed in, the corresponding subscription is canceled.\n         * If no value is passed in, all subscriptions to the specified event are canceled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         */\n        /**\n         * Unregister the callback of keyboardHeightChange\n         *\n         * @param { 'keyboardHeightChange' } type - The value is fixed at 'keyboardHeightChange', indicating the keyboard height change event.\n         * @param { Callback<number> } callback - Callback used to return the current keyboard height, which is an integer, in px.\n         * If a value is passed in, the corresponding subscription is canceled.\n         * If no value is passed in, all subscriptions to the specified event are canceled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'keyboardHeightChange', callback?: Callback<number>): void;\n        /**\n         * Register the callback of keyboardWillShow\n         *\n         * @param { 'keyboardWillShow' } type - The value is fixed at 'keyboardWillShow', indicating the start of the keyboard show animation event.\n         * @param { Callback<KeyboardInfo> } callback - Callback invoked before the keyboard show animation start.\n         * @throws { BusinessError } 801 - Capability not supported. Function keyboardWillShow can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        on(type: 'keyboardWillShow', callback: Callback<KeyboardInfo>): void;\n        /**\n         * Unregister the callback of keyboardWillShow\n         *\n         * @param { 'keyboardWillShow' } type - The value is fixed at 'keyboardWillShow', indicating the start of the keyboard show animation event.\n         * @param { Callback<KeyboardInfo> } callback - Callback invoked before the keyboard show animation start.\n         * @throws { BusinessError } 801 - Capability not supported. Function keyboardWillShow can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        off(type: 'keyboardWillShow', callback?: Callback<KeyboardInfo>): void;\n        /**\n         * Register the callback of keyboardWillHide\n         *\n         * @param { 'keyboardWillHide' } type - The value is fixed at 'keyboardWillHide', indicating the start of the keyboard hide animation event.\n         * @param { Callback<KeyboardInfo> } callback - Callback invoked before the keyboard hide animation start.\n         * @throws { BusinessError } 801 - Capability not supported. Function keyboardWillHide can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        on(type: 'keyboardWillHide', callback: Callback<KeyboardInfo>): void;\n        /**\n         * Unregister the callback of keyboardWillHide\n         *\n         * @param { 'keyboardWillHide' } type - The value is fixed at 'keyboardWillHide', indicating the start of the keyboard hide animation event.\n         * @param { Callback<KeyboardInfo> } callback - Callback invoked before the keyboard hide animation start.\n         * @throws { BusinessError } 801 - Capability not supported. Function keyboardWillHide can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        off(type: 'keyboardWillHide', callback?: Callback<KeyboardInfo>): void;\n        /**\n         * Register the callback of keyboardDidShow\n         *\n         * @param { 'keyboardDidShow' } type - The value is fixed at 'keyboardDidShow', indicating the completion of the keyboard show animation event.\n         * @param { Callback<KeyboardInfo> } callback - Callback invoked when the keyboard show animation is completed.\n         * @throws { BusinessError } 801 - Capability not supported. Function keyboardDidShow can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        on(type: 'keyboardDidShow', callback: Callback<KeyboardInfo>): void;\n        /**\n         * Unregister the callback of keyboardDidShow\n         *\n         * @param { 'keyboardDidShow' } type - The value is fixed at 'keyboardDidShow', indicating the completion of the keyboard show animation event.\n         * @param { Callback<KeyboardInfo> } callback - Callback invoked when the keyboard show animation is completed.\n         * @throws { BusinessError } 801 - Capability not supported. Function keyboardDidShow can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        off(type: 'keyboardDidShow', callback?: Callback<KeyboardInfo>): void;\n        /**\n         * Register the callback of keyboardDidHide\n         *\n         * @param { 'keyboardDidHide' } type - The value is fixed at 'keyboardDidHide', indicating the completion of the keyboard hide animation event.\n         * @param { Callback<KeyboardInfo> } callback - Callback invoked when the keyboard hide animation is completed.\n         * @throws { BusinessError } 801 - Capability not supported. Function keyboardDidHide can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        on(type: 'keyboardDidHide', callback: Callback<KeyboardInfo>): void;\n        /**\n         * Unregister the callback of keyboardDidHide\n         *\n         * @param { 'keyboardDidHide' } type - The value is fixed at 'keyboardDidHide', indicating the completion of the keyboard hide animation event.\n         * @param { Callback<KeyboardInfo> } callback - Callback invoked when the keyboard hide animation is completed.\n         * @throws { BusinessError } 801 - Capability not supported. Function keyboardDidHide can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        off(type: 'keyboardDidHide', callback?: Callback<KeyboardInfo>): void;\n        /**\n         * Subscribes to the touch event outside this window.\n         *\n         * @param { 'touchOutside' } type - The value is fixed at 'touchOutside', indicating the click event outside this window.\n         * @param { Callback<void> } callback - Callback used to return the click event outside this window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        on(type: 'touchOutside', callback: Callback<void>): void;\n        /**\n         * Unsubscribes from the touch event outside this window.\n         *\n         * @param { 'touchOutside' } type - The value is fixed at 'touchOutside', indicating the click event outside this window.\n         * @param { Callback<void> } callback - Callback used to return the click event outside this window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 11\n         */\n        off(type: 'touchOutside', callback?: Callback<void>): void;\n        /**\n         * Window displayId change callback on.\n         *\n         * @param { 'displayIdChange' } type - The value is fixed at 'displayIdChange', indicating the Display this window is current showing has changed.\n         * @param { Callback<number> } callback - Callback used to notify the Display this window is current showing has changed.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        on(type: 'displayIdChange', callback: Callback<number>): void;\n        /**\n         * Window displayId change callback off.\n         *\n         * @param { 'displayIdChange' } type - The value is fixed at 'displayIdChange', indicating the Display this window is current showing has changed.\n         * @param { Callback<number> } callback - Callback used to notify the Display this window is current showing has changed.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        off(type: 'displayIdChange', callback?: Callback<number>): void;\n        /**\n         * Window visibility change callback on.\n         *\n         * @param { 'windowVisibilityChange' } type - The value is fixed at 'windowVisibilityChange', indicating the window visibility change.\n         * @param { Callback<boolean> } callback - Callback used to notify the window visibility change.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Subscribes to the visibility status change event of this window.\n         *\n         * @param { 'windowVisibilityChange' } type - Event type. The value is fixed at 'windowVisibilityChange', indicating the visibility status change event.\n         * @param { Callback<boolean> } callback - Callback used to return the visibility status of the window, which is a Boolean value.\n         *                                         The value true means that the window is visible, and false means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'windowVisibilityChange', callback: Callback<boolean>): void;\n        /**\n         * Window visibility change callback off.\n         *\n         * @param { 'windowVisibilityChange' } type - The value is fixed at 'windowVisibilityChange', indicating the window visibility change.\n         * @param { Callback<boolean> } callback - Callback used to notify the window visibility change.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Unsubscribes from the visibility status change event of this window.\n         *\n         * @param { 'windowVisibilityChange' } type - Event type. The value is fixed at 'windowVisibilityChange', indicating the visibility status change event.\n         * @param { Callback<boolean> } callback - Callback used to return the visibility status of the window.\n         *                                         If a value is passed in, the corresponding subscription is canceled.\n         *                                         If no value is passed in, all subscriptions to the specified event are canceled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'windowVisibilityChange', callback?: Callback<boolean>): void;\n        /**\n         * System density change callback on.\n         *\n         * @param { 'systemDensityChange' } type - The value is fixed at 'systemDensityChange', indicating the system density is current has changed.\n         * @param { Callback<number> } callback - Callback used to notify the system density is current has changed.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        on(type: 'systemDensityChange', callback: Callback<number>): void;\n        /**\n         * System density change callback off.\n         *\n         * @param { 'systemDensityChange' } type - The value is fixed at 'systemDensityChange', indicating the system density is current showing has changed.\n         * @param { Callback<number> } callback - Callback used to notify the system density is current has changed.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        off(type: 'systemDensityChange', callback?: Callback<number>): void;\n        /**\n         * Subscribes to non-interaction events in a window within the specified period.\n         * Interaction events include physical keyboard input events and screen touch/click events, but not soft keyboard input events.\n         *\n         * @param { 'noInteractionDetected' } type - The value is fixed at 'noInteractionDetected', indicating the window has no interaction for a long time.\n         * @param { number } timeout - The timeout(in seconds) of no interaction detection.\n         * @param { Callback<void> } callback - Callback used to notify the window has no interaction for a long time.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'noInteractionDetected', timeout: number, callback: Callback<void>): void;\n        /**\n         * Unsubscribes from non-interaction events in a window within the specified period.\n         * Interaction events include physical keyboard input events and screen touch/click events, but not soft keyboard input events.\n         *\n         * @param { 'noInteractionDetected' } type - The value is fixed at 'noInteractionDetected', indicating the window has no interaction for a long time.\n         * @param { Callback<void> } callback - Callback used to notify the window has no interaction for a long time.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'noInteractionDetected', callback?: Callback<void>): void;\n        /**\n         * Register the callback of screenshot, only the focused window called back\n         *\n         * @param { 'screenshot' } type - The value is fixed at 'screenshot', indicating the screenshot event.\n         * @param { Callback<void> } callback - Callback invoked when a screenshot event occurs.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Register the callback of screenshot, only the focused window called back\n         *\n         * @param { 'screenshot' } type - The value is fixed at 'screenshot', indicating the screenshot event.\n         * @param { Callback<void> } callback - Callback invoked when a screenshot event occurs.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'screenshot', callback: Callback<void>): void;\n        /**\n         * Unregister the callback of screenshot\n         *\n         * @param { 'screenshot' } type - The value is fixed at 'screenshot', indicating the screenshot event.\n         * @param { Callback<void> } callback - Callback invoked when a screenshot event occurs.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Unregister the callback of screenshot\n         *\n         * @param { 'screenshot' } type - The value is fixed at 'screenshot', indicating the screenshot event.\n         * @param { Callback<void> } callback - Callback invoked when a screenshot event occurs.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'screenshot', callback?: Callback<void>): void;\n        /**\n         * Register the callback of dialogTargetTouch\n         *\n         * @param { 'dialogTargetTouch' } type - The value is fixed at 'dialogTargetTouch', indicating the click event of the target window in the modal window mode.\n         * @param { Callback<void> } callback - Callback invoked when the click event occurs in the target window of the modal window mode.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * Subscribes to click or touch events in a window covered by a modal window. This API takes effect only when it is called by a modal window.\n         *\n         * @param { 'dialogTargetTouch' } type - The value is fixed at 'dialogTargetTouch', indicating the click event of the target window in the modal window mode.\n         * @param { Callback<void> } callback - Callback invoked when the click event occurs in the target window of the modal window mode.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'dialogTargetTouch', callback: Callback<void>): void;\n        /**\n         * Unregister the callback of dialogTargetTouch\n         *\n         * @param { 'dialogTargetTouch' } type - The value is fixed at 'dialogTargetTouch',\n         *  indicating the click event of the target window in the modal window mode.\n         * @param { Callback<void> } callback - Callback invoked when the click event occurs in the target window of the modal window mode.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * Unsubscribes from the touch event of the target window in the modal window mode.\n         *\n         * @param { 'dialogTargetTouch' } type - The value is fixed at 'dialogTargetTouch',\n         *  indicating the click event of the target window in the modal window mode.\n         * @param { Callback<void> } callback - Callback invoked when the click event occurs in the target window of the modal window mode.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'dialogTargetTouch', callback?: Callback<void>): void;\n        /**\n         * Register the callback of windowEvent\n         *\n         * @param { 'windowEvent' } type - The value is fixed at 'windowEvent', indicating the window lifecycle change event.\n         * @param { Callback<WindowEventType> } callback - the callback of window event\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * Subscribes to the window lifecycle change event.\n         *\n         * @param { 'windowEvent' } type - Event type. The value is fixed at 'windowEvent', indicating the window lifecycle change event.\n         * @param { Callback<WindowEventType> } callback - Callback used to return the window lifecycle state.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        on(type: 'windowEvent', callback: Callback<WindowEventType>): void;\n        /**\n         * Unregister the callback of windowEvent\n         *\n         * @param { 'windowEvent' } type - The value is fixed at 'windowEvent', indicating the window lifecycle change event.\n         * @param { Callback<WindowEventType> } callback - the callback of window event\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * Unsubscribes from the window lifecycle change event.\n         *\n         * @param { 'windowEvent' } type - Event type. The value is fixed at 'windowEvent', indicating the window lifecycle change event.\n         * @param { Callback<WindowEventType> } callback - Callback used to return the window lifecycle state.\n         *                                                 If a value is passed in, the corresponding subscription is canceled.\n         *                                                 If no value is passed in, all subscriptions to the specified event are canceled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        off(type: 'windowEvent', callback?: Callback<WindowEventType>): void;\n        /**\n         * Register the callback of windowStatusChange\n         *\n         * @param { 'windowStatusChange' } type - The value is fixed at 'windowStatusChange', indicating the window status change event.\n         * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Register the callback of windowStatusChange\n         *\n         * @param { 'windowStatusChange' } type - The value is fixed at 'windowStatusChange', indicating the window status change event.\n         * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'windowStatusChange', callback: Callback<WindowStatusType>): void;\n        /**\n         * Unregister the callback of windowStatusChange\n         *\n         * @param { 'windowStatusChange' } type - The value is fixed at 'windowStatusChange', indicating the window status change event.\n         * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Unregister the callback of windowStatusChange\n         *\n         * @param { 'windowStatusChange' } type - The value is fixed at 'windowStatusChange', indicating the window status change event.\n         * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'windowStatusChange', callback?: Callback<WindowStatusType>): void;\n        /**\n         * Register the callback of windowStatusDidChange\n         *\n         * @param { 'windowStatusDidChange' } type - The value is fixed at 'windowStatusDidChange', indicating the window status change event.\n         * @param { Callback<WindowStatusType> } callback - Callback used to return the window status.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 20\n         */\n        on(type: 'windowStatusDidChange', callback: Callback<WindowStatusType>): void;\n        /**\n         * Unregister the callback of windowStatusDidChange\n         *\n         * @param { 'windowStatusDidChange' } type - The value is fixed at 'windowStatusDidChange', indicating the window status change event.\n         * @param { Callback<WindowStatusType> } [callback] - Callback used to return the window status.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 20\n         */\n        off(type: 'windowStatusDidChange', callback?: Callback<WindowStatusType>): void;\n        /**\n         * Subscribes to the event indicating that the child window is closed.\n         * This event is triggered only when the user clicks the system-provided close button in the upper right corner to close the child window.\n         * It is not triggered when the child window is closed in other ways.\n         *\n         * @param { 'subWindowClose' } type - Event type. The value is fixed at 'subWindowClose', indicating the child window close event.\n         * @param { Callback<void> } callback - Callback invoked when the close button in the upper right corner of the child window is clicked.\n         *                                      The internal logic of the callback function requires a return value of the Boolean type.\n         *                                      The return value determines whether to continue to close the child window.\n         *                                      The value true means not to close the child window, and false means to continue to close the child window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'subWindowClose', callback: Callback<void>): void;\n        /**\n         * Unsubscribes from the event indicating that the child window is closed.\n         *\n         * @param { 'subWindowClose' } type - Event type. The value is fixed at 'subWindowClose', indicating the child window close event.\n         * @param { Callback<void> } callback - Callback invoked when the close button in the upper right corner of the child window is clicked.\n         *                                      The internal logic of the callback function requires a return value of the Boolean type.\n         *                                      The return value determines whether to continue to close the child window.\n         *                                      The value true means not to close the child window, and false means to continue to close the child window.\n         *                                      If a value is passed in, the corresponding subscription is canceled.\n         *                                      If no value is passed in, all subscriptions to the specified event are canceled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'subWindowClose', callback?: Callback<void>): void;\n        /**\n         * Subscribes to the event indicating that the main window or child window will be closed.\n         * This event is triggered only when the user clicks the close button in the system-provided title bar to close the window.\n         * It is not triggered when the window is closed in other ways.\n         *\n         * @param { 'windowWillClose' } type - Event type. The value is fixed at 'windowWillClose', indicating the window close event.\n         * @param { Callback<void, Promise<boolean>> } callback - Callback used to when the close button in the upper right corner of the window is clicked.\n         *                                                        The internal logic of the callback function requires a return value of the Promise type.\n         *                                                        In the returned Promise function, resolve(true) means not to close the window,\n         *                                                        and resolve(false) or reject means to continue to close the window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        on(type: 'windowWillClose', callback: Callback<void, Promise<boolean>>): void;\n        /**\n         * Unsubscribes from the event indicating that the main window or child window will be closed.\n         *\n         * @param { 'windowWillClose' } type - Event type. The value is fixed at 'windowWillClose', indicating the window close event.\n         * @param { Callback<void, Promise<boolean>> } callback - Callback used to when the close button in the upper right corner of the window is clicked.\n         *                                                        The internal logic of the callback function requires a return value of the Promise type.\n         *                                                        It does not return any parameter. In the returned Promise function,\n         *                                                        resolve(true) means not to close the window,\n         *                                                        and resolve(false) or reject means to continue to close the window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        off(type: 'windowWillClose', callback?: Callback<void, Promise<boolean>>): void;\n        /**\n         * Register the callback of window highlight state change\n         *\n         * @param { 'windowHighlightChange' } type - The value is fixed at 'windowHighlightChange', indicating the window highlight state change event.\n         * @param { Callback<boolean> } callback - Callback used to return the highlight status of the window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        on(type: 'windowHighlightChange', callback: Callback<boolean>): void;\n        /**\n         * Unregister the callback of window highlight state change\n         *\n         * @param { 'windowHighlightChange' } type - The value is fixed at 'windowHighlightChange', indicating the window highlight change event.\n         * @param { Callback<boolean> } callback - Callback used to return the highlight status of the window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        off(type: 'windowHighlightChange', callback?: Callback<boolean>): void;\n        /**\n         * Sets whether the modal window responds to the back gesture event. An error code is returned if this API is called for a non-modal window.\n         *\n         * @param { boolean } enabled - Whether to respond to the back gesture event.\n         *                              The value true means to respond to the back gesture event and trigger the onBackPress callback, and false means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        setDialogBackGestureEnabled(enabled: boolean): Promise<void>;\n        /**\n         * Whether the window supports thr wide gamut setting.\n         *\n         * @returns { Promise<boolean> } Promise used to return the result. The value true means that the wide-gamut color space is supported, and false means the opposite.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#isWindowSupportWideGamut\n         */\n        isSupportWideGamut(): Promise<boolean>;\n        /**\n         * Whether the window supports thr wide gamut setting.\n         *\n         * @param { AsyncCallback<boolean> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#isWindowSupportWideGamut\n         */\n        isSupportWideGamut(callback: AsyncCallback<boolean>): void;\n        /**\n         * Whether the window supports thr wide gamut setting.\n         *\n         * @returns { Promise<boolean> } Promise used to return the result.\n         *  The value true means that the wide-gamut color space is supported, and false means the opposite.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Whether the window supports thr wide gamut setting.\n         *\n         * @returns { Promise<boolean> } Promise used to return the result.\n         *  The value true means that the wide-gamut color space is supported, and false means the opposite.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isWindowSupportWideGamut(): Promise<boolean>;\n        /**\n         * Whether the window supports thr wide gamut setting.\n         *\n         * @param { AsyncCallback<boolean> } callback Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Whether the window supports thr wide gamut setting.\n         *\n         * @param { AsyncCallback<boolean> } callback Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isWindowSupportWideGamut(callback: AsyncCallback<boolean>): void;\n        /**\n         * Sets the specified color space.\n         *\n         * @param { ColorSpace } colorSpace the specified color space.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowColorSpace\n         */\n        setColorSpace(colorSpace: ColorSpace): Promise<void>;\n        /**\n         * Sets the specified color space.\n         *\n         * @param { ColorSpace } colorSpace the specified color space.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowColorSpace\n         */\n        setColorSpace(colorSpace: ColorSpace, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the specified color space.\n         *\n         * @param { ColorSpace } colorSpace the specified color space.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets the specified color space.\n         *\n         * @param { ColorSpace } colorSpace the specified color space.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Sets the specified color space.\n         *\n         * @param { ColorSpace } colorSpace the specified color space.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setWindowColorSpace(colorSpace: ColorSpace): Promise<void>;\n        /**\n         * Sets the specified color space.\n         *\n         * @param { ColorSpace } colorSpace the specified color space.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets the specified color space.\n         *\n         * @param { ColorSpace } colorSpace the specified color space.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Sets the specified color space.\n         *\n         * @param { ColorSpace } colorSpace the specified color space.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        setWindowColorSpace(colorSpace: ColorSpace, callback: AsyncCallback<void>): void;\n        /**\n         * Obtains the set color space.\n         *\n         * @returns { Promise<ColorSpace> } Promise used to return the current color space.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#getWindowColorSpace\n         */\n        getColorSpace(): Promise<ColorSpace>;\n        /**\n         * Obtains the set color space.\n         *\n         * @param { AsyncCallback<ColorSpace> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 8\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#getWindowColorSpace\n         */\n        getColorSpace(callback: AsyncCallback<ColorSpace>): void;\n        /**\n         * Obtains the set color space.\n         *\n         * @returns { ColorSpace } Color space obtained.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Obtains the set color space.\n         *\n         * @returns { ColorSpace } Color space obtained.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 11\n         */\n        /**\n         * Obtains the set color space.\n         *\n         * @returns { ColorSpace } Color space obtained.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 12\n         */\n        getWindowColorSpace(): ColorSpace;\n        /**\n         * Sets the background color of window.\n         *\n         * @param { string } color the specified color.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowBackgroundColor\n         */\n        setBackgroundColor(color: string): Promise<void>;\n        /**\n         * Sets the background color of window.\n         *\n         * @param { string } color the specified color.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowBackgroundColor\n         */\n        setBackgroundColor(color: string, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the background color of window.\n         *\n         * @param { string } color the specified color.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets the background color of window.\n         *\n         * @param { string } color the specified color.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the background color of window.\n         *\n         * @param { string } color the specified color.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        /**\n         * Sets the background color of window.\n         *\n         * @param { string | ColorMetrics } color - the specified color.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 18\n         */\n        setWindowBackgroundColor(color: string | ColorMetrics): void;\n        /**\n         * Sets the brightness of window.\n         *\n         * @param { number } brightness the specified brightness value.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowBrightness\n         */\n        setBrightness(brightness: number): Promise<void>;\n        /**\n         * Sets the brightness of window.\n         *\n         * @param { number } brightness the specified brightness value.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowBrightness\n         */\n        setBrightness(brightness: number, callback: AsyncCallback<void>): void;\n        /**\n         * Places the main window above all the other windows of the application.\n         *\n         * @permission ohos.permission.WINDOW_TOPMOST\n         * @param { boolean } isWindowTopmost - Whether to pin the main window on top.\n         *                                      The value true means to pin the main window on top, and false means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        setWindowTopmost(isWindowTopmost: boolean): Promise<void>;\n        /**\n         * Sets the brightness of window.\n         *\n         * @param { number } brightness the specified brightness value.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets the brightness of window.\n         *\n         * @param { number } brightness the specified brightness value.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the brightness of window.\n         *\n         * @param { number } brightness the specified brightness value.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setWindowBrightness(brightness: number): Promise<void>;\n        /**\n         * Sets the brightness of window.\n         *\n         * @param { number } brightness the specified brightness value.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets the brightness of window.\n         *\n         * @param { number } brightness the specified brightness value.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets the brightness of window.\n         *\n         * @param { number } brightness the specified brightness value.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setWindowBrightness(brightness: number, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the dimBehind of window.\n         *\n         * @param { number } dimBehindValue - The specified dimBehind.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        setDimBehind(dimBehindValue: number, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the dimBehind of window.\n         *\n         * @param { number } dimBehindValue - The specified dimBehind.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        setDimBehind(dimBehindValue: number): Promise<void>;\n        /**\n         * Sets whether focusable or not.\n         *\n         * @param { boolean } isFocusable can be focus if true, or can not be focus if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowFocusable\n         */\n        setFocusable(isFocusable: boolean): Promise<void>;\n        /**\n         * Sets whether focusable or not.\n         *\n         * @param { boolean } isFocusable can be focus if true, or can not be focus if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowFocusable\n         */\n        setFocusable(isFocusable: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether focusable or not.\n         *\n         * @param { boolean } isFocusable can be focus if true, or can not be focus if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether focusable or not.\n         *\n         * @param { boolean } isFocusable can be focus if true, or can not be focus if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setWindowFocusable(isFocusable: boolean): Promise<void>;\n        /**\n         * Sets whether focusable or not.\n         *\n         * @param { boolean } isFocusable can be focus if true, or can not be focus if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether focusable or not.\n         *\n         * @param { boolean } isFocusable can be focus if true, or can not be focus if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setWindowFocusable(isFocusable: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether exclusively highlighted or not.\n         *\n         * @param { boolean } exclusivelyHighlighted Whether the window can become highlight exclusively when it gain focus. The value\n         *                                           true means that the window can cause the window outside the current window link to\n         *                                           lose its highlight state, and false means the opposite.\n         * @returns { Promise<void> } - Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        setExclusivelyHighlighted(exclusivelyHighlighted: boolean): Promise<void>;\n        /**\n         * Checks whether the window is highlighted.\n         *\n         * @returns { boolean } - Whether the window is highlighted. The value true means that the window is highlighted, and false means the opposite.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        isWindowHighlighted(): boolean;\n        /**\n         * Sets whether keep screen on or not.\n         *\n         * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.\n         * @returns { Promise<void> } that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowKeepScreenOn\n         */\n        setKeepScreenOn(isKeepScreenOn: boolean): Promise<void>;\n        /**\n         * Sets whether keep screen on or not.\n         *\n         * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 6\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowKeepScreenOn\n         */\n        setKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether keep screen on or not.\n         *\n         * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether keep screen on or not.\n         *\n         * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets whether keep screen on or not.\n         *\n         * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setWindowKeepScreenOn(isKeepScreenOn: boolean): Promise<void>;\n        /**\n         * Sets whether keep screen on or not.\n         *\n         * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether keep screen on or not.\n         *\n         * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Sets whether keep screen on or not.\n         *\n         * @param { boolean } isKeepScreenOn keep screen on if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        setWindowKeepScreenOn(isKeepScreenOn: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether outside can be touch or not.\n         *\n         * @param { boolean } touchable outside can be touch if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        setOutsideTouchable(touchable: boolean): Promise<void>;\n        /**\n         * Sets whether outside can be touch or not.\n         *\n         * @param { boolean } touchable outside can be touch if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         */\n        setOutsideTouchable(touchable: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether is private mode or not.\n         *\n         * @param { boolean } isPrivacyMode in private mode if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowPrivacyMode\n         */\n        setPrivacyMode(isPrivacyMode: boolean): Promise<void>;\n        /**\n         * Sets whether is private mode or not.\n         *\n         * @param { boolean } isPrivacyMode in private mode if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowPrivacyMode\n         */\n        setPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether is private mode or not.\n         *\n         * @permission ohos.permission.PRIVACY_WINDOW\n         * @param { boolean } isPrivacyMode in private mode if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether is private mode or not.\n         *\n         * @permission ohos.permission.PRIVACY_WINDOW\n         * @param { boolean } isPrivacyMode in private mode if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setWindowPrivacyMode(isPrivacyMode: boolean): Promise<void>;\n        /**\n         * Sets whether is private mode or not.\n         *\n         * @permission ohos.permission.PRIVACY_WINDOW\n         * @param { boolean } isPrivacyMode in private mode if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether is private mode or not.\n         *\n         * @permission ohos.permission.PRIVACY_WINDOW\n         * @param { boolean } isPrivacyMode in private mode if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 201 - Permission verification failed. The application does not have the permission required to call the API.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setWindowPrivacyMode(isPrivacyMode: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether is touchable or not.\n         *\n         * @param { boolean } isTouchable is touchable if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowTouchable\n         */\n        setTouchable(isTouchable: boolean): Promise<void>;\n        /**\n         * Sets whether is touchable or not.\n         *\n         * @param { boolean } isTouchable is touchable if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 7\n         * @deprecated since 9\n         * @useinstead ohos.window.Window#setWindowTouchable\n         */\n        setTouchable(isTouchable: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Sets whether is touchable or not.\n         *\n         * @param { boolean } isTouchable is touchable if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether is touchable or not.\n         *\n         * @param { boolean } isTouchable is touchable if true, or not if false.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setWindowTouchable(isTouchable: boolean): Promise<void>;\n        /**\n         * Sets whether is touchable or not.\n         *\n         * @param { boolean } isTouchable is touchable if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Sets whether is touchable or not.\n         *\n         * @param { boolean } isTouchable is touchable if true, or not if false.\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setWindowTouchable(isTouchable: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Obtains snapshot of window\n         *\n         * @param { AsyncCallback<image.PixelMap> } callback Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Obtains snapshot of window\n         *\n         * @param { AsyncCallback<image.PixelMap> } callback Callback used to return the result.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        snapshot(callback: AsyncCallback<image.PixelMap>): void;\n        /**\n         * Obtains snapshot of window\n         *\n         * @returns { Promise<image.PixelMap> } Promise that returns no value.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 9\n         */\n        /**\n         * Obtains snapshot of window\n         *\n         * @returns { Promise<image.PixelMap> } Promise that returns no value.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        snapshot(): Promise<image.PixelMap>;\n        /**\n         * Obtains snapshot of window even set the privacy mode.\n         *\n         * @returns { Promise<image.PixelMap> } Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Function snapshotIgnorePrivacy can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        snapshotIgnorePrivacy(): Promise<image.PixelMap>;\n        /**\n         * Sets the blur radius of the shadow on the edges of a child window or floating window.\n         *\n         * @param { number } radius - Radius of the shadow, measured in px.\n         *                            The value is a floating point number greater than or equal to 0.0,\n         *                            and the value 0.0 means that the shadow is disabled for the window borders.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 17\n         */\n        setWindowShadowRadius(radius: number): void;\n        /**\n         * Sets the radius of the rounded corners for a child window or floating window.\n         *\n         * @param { number } cornerRadius - Radius of the rounded corners, measured in vp.\n         *                                  The value is a floating point number greater than or equal to 0.0.\n         *                                  The value 0.0 means that the window does not use rounded corners.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 17\n         */\n        setWindowCornerRadius(cornerRadius: number): Promise<void>;\n        /**\n         * Obtains the radius of rounded corners of a child window or floating window.\n         *\n         * @returns { number } - Radius of the rounded corner of the child window or floating window, measured in vp.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 17\n         */\n        getWindowCornerRadius(): number;\n        /**\n         * Raise app sub window to app top\n         *\n         * @returns { Promise<void> } - The promise returned by the function\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @throws { BusinessError } 1300009 - The parent window is invalid.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 14\n         */\n        raiseToAppTop(): Promise<void>;\n        /**\n         * Sets the aspect ratio of window\n         *\n         * @param { number } ratio - The aspect ratio of window except decoration\n         * @param { AsyncCallback<void> } callback - The callback of setAspectRatio.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * Sets the aspect ratio of window\n         *\n         * @param { number } ratio - The aspect ratio of window except decoration\n         * @param { AsyncCallback<void> } callback - The callback of setAspectRatio.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setAspectRatio(ratio: number, callback: AsyncCallback<void>): void;\n        /**\n         * Sets the aspect ratio of window\n         *\n         * @param { number } ratio - The aspect ratio of window except decoration\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * Sets the aspect ratio of window\n         *\n         * @param { number } ratio - The aspect ratio of window except decoration\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setAspectRatio(ratio: number): Promise<void>;\n        /**\n         * Resets the aspect ratio of window\n         *\n         * @param { AsyncCallback<void> } callback - The callback of setAspectRatio.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * Resets the aspect ratio of window\n         *\n         * @param { AsyncCallback<void> } callback - The callback of setAspectRatio.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        resetAspectRatio(callback: AsyncCallback<void>): void;\n        /**\n         * Resets the aspect ratio of window\n         *\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @since 10\n         */\n        /**\n         * Resets the aspect ratio of window\n         *\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        resetAspectRatio(): Promise<void>;\n        /**\n         * Set whether to enable an app sub window to raise itself by click.\n         *\n         * @param { boolean } enable - Disable app sub window to raise itself by by click if false.\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @throws { BusinessError } 1300009 - The parent window is invalid.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 14\n         */\n        setRaiseByClickEnabled(enable: boolean): Promise<void>;\n        /**\n         * Minimize app main window and hide app subWindow.\n         *\n         * @param { AsyncCallback<void> } callback - The callback of Minimize.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Minimizes the main window if the caller is the main window. The main window can be restored in the dock bar. For 2-in-1 devices, it can be restored by calling restore().\n         * Hides the child window if the caller is a child window. The child window cannot be restored in the dock bar. It can be made visible again by calling showWindow().\n         *\n         *\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        minimize(callback: AsyncCallback<void>): void;\n        /**\n         * Minimize app main window and hide app subWindow.\n         *\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Minimizes the main window if the caller is the main window. The main window can be restored in the dock bar. For 2-in-1 devices, it can be restored by calling restore().\n         * Hides the child window if the caller is a child window. The child window cannot be restored in the dock bar. It can be made visible again by calling showWindow().\n         *\n         * @returns { Promise<void> } - Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        minimize(): Promise<void>;\n        /**\n         * Maximize app main window.\n         * @param { MaximizePresentation } presentation - set window presentation when maximize.\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Maximizes the main window.\n         *\n         * @param { ?MaximizePresentation } presentation - Layout when the window is maximized.\n         *                                                 The default value is window.MaximizePresentation.ENTER_IMMERSIVE,\n         *                                                 indicating that the window enters the immersive layout when maximized.\n         * @returns { Promise<void> } - Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Function maximize can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        maximize(presentation?: MaximizePresentation): Promise<void>;\n        /**\n         * Set whether to enable a window to resize by drag.\n         *\n         * @param { boolean } enable - Disable window to resize by drag if false.\n         * @param { AsyncCallback<void> } callback - The callback of setResizeByDragEnabled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        setResizeByDragEnabled(enable: boolean, callback: AsyncCallback<void>): void;\n        /**\n         * Set whether to enable a window to resize by drag.\n         *\n         * @param { boolean } enable - Disable window to resize by drag if false.\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        setResizeByDragEnabled(enable: boolean): Promise<void>;\n        /**\n         * Get the window limits of current window.\n         *\n         * @returns { WindowLimits } - The limits of window.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Get the window limits of current window.\n         *\n         * @returns { WindowLimits } - The limits of window.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        getWindowLimits(): WindowLimits;\n        /**\n         * Set the window limits of a window.\n         *\n         * @param { WindowLimits } windowLimits - window limits of the window.\n         * @returns { Promise<WindowLimits> } - Promise is used to return the limits of window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Set the window limits of a window.\n         *\n         * @param { WindowLimits } windowLimits - window limits of the window.\n         * @returns { Promise<WindowLimits> } - Promise is used to return the limits of window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        setWindowLimits(windowLimits: WindowLimits): Promise<WindowLimits>;\n        /**\n         * Set the window limits of a window.\n         *\n         * @param { WindowLimits } windowLimits - Window limits of the window.\n         * @param { boolean } isForcible - Ignore system limits.\n         * @returns { Promise<WindowLimits> } - Promise is used to return the limits of window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        setWindowLimits(windowLimits: WindowLimits, isForcible: boolean): Promise<WindowLimits>;\n        /**\n         * When get focused, keep the keyboard created by other windows, support system window and app subwindow.\n         *\n         * @param { boolean } keepKeyboardFlag - keep the keyboard if true, otherwise means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * When get focused, keep the keyboard created by other windows, support system window and app subwindow.\n         *\n         * @param { boolean } keepKeyboardFlag - Whether to keep the soft keyboard created by others.\n         * The value true means to keep the soft keyboard, and false means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        keepKeyboardOnFocus(keepKeyboardFlag: boolean): void;\n        /**\n         * Recover app main window.\n         *\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300001 - Repeated operation.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Restores the main window from the full-screen, maximized, or split-screen mode to a floating window,\n         * and restores the window size and position to those before the full-screen, maximized, or split-screen mode is entered.\n         *\n         * @returns { Promise<void> } - Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300001 - Repeated operation.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        recover(): Promise<void>;\n        /**\n         * Restores the main window from minimization to the foreground, returning it to its size and position before it is minimized.\n         *\n         * @returns { Promise<void> } - Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        restore(): Promise<void>;\n        /**\n         * Set the visibility of the window decor.\n         *\n         * @param { boolean } - Enable the decor visible if true, otherwise means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Set the visibility of the window decor.\n         *\n         * @param { boolean } isVisible - Enable the decor visible if true, otherwise means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Sets whether the title bar is visible in the window.\n         *\n         * @param { boolean } isVisible - Whether the title bar is visible. The value true means that the title bar is visible and false means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        setWindowDecorVisible(isVisible: boolean): void;\n        /**\n         * Checks whether the title bar of this window is visible.\n         *\n         * @returns { boolean } - Check result. The value true means that the title bar is visible, and false means the opposite.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        getWindowDecorVisible(): boolean;\n        /**\n         * Enables or disables the capability to move the window (either main window or child window) by dragging its title bar and to maximize the window with a double-click.\n         *\n         * @param { boolean } enabled - Whether to enable the capability to move the window by dragging the title bar and to maximize the window with a double-click.\n         *                              The value true means to enable the capability, and false means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        setWindowTitleMoveEnabled(enabled: boolean): void;\n        /**\n         * Set the title bar name of the window\n         *\n         * @param { string } titleName - The name of the title bar that needs to be set\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        setWindowTitle(titleName: string): Promise<void>;\n        /**\n         * Set the modality of the window.\n         *\n         * @param { boolean } isModal - Enable the window modal if true, otherwise means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        /**\n         * Enables the modal property of the child window. After the modal property is enabled,\n         * the parent window does not respond to user interactions until the child window is closed or the child window's modal property is disabled.\n         *\n         * @param { boolean } isModal - Whether to enable the modal property of the child window.\n         *                              The value true means to enable the modal property, and false means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        setSubWindowModal(isModal: boolean): Promise<void>;\n        /**\n         * Set the modality of the window.\n         *\n         * @param { boolean } isModal - Enable the window modal if true, otherwise means the opposite.\n         * @param { ModalityType } modalityType - Set modality type when the window modal is true.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        /**\n         * Enables the modal property of the child window. After the modal property is enabled,\n         * the parent window does not respond to user interactions until the child window is closed or the child window's modal property is disabled.\n         *\n         * @param { boolean } isModal - Whether to enable the modal property of the child window. The value true means to enable the modal property,\n         *                              and false means the opposite. Currently, this parameter can only be set to true.\n         * @param { ModalityType } modalityType - Modality type of the child window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        setSubWindowModal(isModal: boolean, modalityType: ModalityType): Promise<void>;\n        /**\n         * Set the height of the window decor.\n         *\n         * @param { number } - The height of window decor.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Sets the height of the title bar of this window.\n         * This API takes effect for the window that has a title bar or a three-button area on 2-in-1 devices.\n         *\n         * @param { number } height - Height of the title bar. It takes effect only for the window with the title bar.\n         *                            The value is an integer in the range [37,112]. The unit is vp. If a floating point number is passed in,\n         *                            the value is rounded down. A value outside the range is invalid.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        setWindowDecorHeight(height: number): void;\n        /**\n         * Get the height of the window decor.\n         *\n         * @returns { number } - The height of window decor.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Obtains the height of the title bar of this window.\n         * This API takes effect for the window that has a title bar or a three-button area on 2-in-1 devices.\n         *\n         * @returns { number } - Height of the title bar. The value is an integer in the range [37,112]. The unit is vp.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        getWindowDecorHeight(): number;\n        /**\n         * Sets the button style of the decoration bar. The setting takes effect only for the main window and the child window with the window title enabled.\n         *\n         * @param { DecorButtonStyle } dectorStyle - Button style of the decoration bar.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        setDecorButtonStyle(dectorStyle: DecorButtonStyle): void;\n        /**\n         * Obtains the button style of the decoration bar. The setting takes effect only for the main window and the child window with the window title enabled.\n         *\n         * @returns { DecorButtonStyle } - Button style on the decoration bar of the current window.\n         *                                 The decoration button area is located in the upper right corner of the window.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        getDecorButtonStyle(): DecorButtonStyle;\n        /**\n         * Get the area of window title buttons.\n         *\n         * @returns { TitleButtonRect } - The area of window title buttons.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Obtains the rectangle that holds the minimize, maximize, and close buttons on the title bar of the main window or the decorated child window.\n         *\n         * @returns { TitleButtonRect } - Rectangle obtained, which is located in the upper right corner of the window.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        getTitleButtonRect(): TitleButtonRect;\n        /**\n         * Shows or hides the maximize, minimize, and close buttons on the title bar of the main window.\n         *\n         * @param { boolean } isMaximizeButtonVisible - Whether to show the maximize button. The value true means to show the button, and false means the opposite.\n         *                                              If the maximize button is hidden, the corresponding restore button is also hidden in the maximize scenario.\n         * @param { boolean } isMinimizeButtonVisible - Whether to show the minimize button. The value true means to show the button, and false means the opposite.\n         * @param { boolean } isCloseButtonVisible - Whether to show the close button. The value true means to show the button, and false means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        setWindowTitleButtonVisible(isMaximizeButtonVisible: boolean, isMinimizeButtonVisible: boolean, isCloseButtonVisible?: boolean): void;\n        /**\n         * Enable landscape multiWindow\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws {BusinessError} 1300002 - This window state is abnormal.\n         * @throws {BusinessError} 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        enableLandscapeMultiWindow(): Promise<void>;\n        /**\n         * Starts moving this window. This API uses a promise to return the result.\n         * The window moves along with the cursor only when this API is called in the callback function of onTouch, where the event type is TouchType.Down.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300001 - Repeated operation.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        startMoving(): Promise<void>;\n        /**\n         * Specifies the cursor position within the window and moves the window. It first adjusts the window to the cursor position before starting to move the window.\n         * The window moves along with the cursor only when this API is called in the callback function of onTouch, where the event type is TouchType.Down.\n         *\n         * @param { number } offsetX - X-axis offset of the cursor position relative to the upper left corner of the window during movement, measured in px.\n         *                             This parameter only accepts integer values; any floating-point input will be rounded down.\n         *                             Negative values or values exceeding the window width are invalid. The window width can be obtained from WindowProperties.\n         * @param { number } offsetY - Y-axis offset of the cursor position relative to the upper left corner of the window during movement, measured in px.\n         *                             This parameter only accepts integer values; any floating-point input will be rounded down.\n         *                             Negative values or values exceeding the window height are invalid. The window height can be obtained from WindowProperties.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300001 - Repeated operation.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        startMoving(offsetX: number, offsetY: number): Promise<void>;\n        /**\n         * Stops window movement when a window is being dragged. This API uses a promise to return the result.\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        stopMoving(): Promise<void>;\n        \n        /**\n         * Enable drag window.\n         *\n         * @param { boolean } enable - The value true means to enable window dragging, and false means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 20\n         */\n        enableDrag(enable: boolean): Promise<void>;\n        /**\n         * Disable landscape multiWindow\n         *\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws {BusinessError} 1300002 - This window state is abnormal.\n         * @throws {BusinessError} 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        disableLandscapeMultiWindow(): Promise<void>;\n        /**\n         * Set window transition animation\n         *\n         * @param { WindowTransitionType } transitionType - Transition animation type.\n         * @param { TransitionAnimation } animation - Transition animation config.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range. 2. Invalid parameter length.\n         * @syscap SystemCapability.Window.SessionManager\n         * @stagemodelonly\n         * @atomicservice\n         * @since 20\n         */\n        setWindowTransitionAnimation(transitionType: WindowTransitionType, animation: TransitionAnimation): Promise<void>;\n        /**\n         * Get window transition animation configuration\n         *\n         * @param { WindowTransitionType } transitionType - Transition animation type.\n         * @returns { TransitionAnimation | undefined } Transition animation with transition type, or undefined if it has not been set.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @throws { BusinessError } 1300016 - Parameter error. Possible cause: 1. Invalid parameter range. 2. Invalid parameter length.\n         * @syscap SystemCapability.Window.SessionManager\n         * @stagemodelonly\n         * @atomicservice\n         * @since 20\n         */\n        getWindowTransitionAnimation(transitionType: WindowTransitionType): TransitionAnimation | undefined;\n        /**\n         * Register the callback of title buttons area change.\n         *\n         * @param { 'windowTitleButtonRectChange' } type - The value is fixed at 'windowTitleButtonRectChange', indicating the title buttons area change event.\n         * @param { Callback<TitleButtonRect> } callback - Callback used to return the current title buttons area.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Subscribes to the change event of the rectangle that holds the minimize, maximize, and close buttons on the title bar of the window.\n         *\n         * @param { 'windowTitleButtonRectChange' } type - Event type. The value is fixed at 'windowTitleButtonRectChange',\n         *                                                 indicating that the change event of the rectangle that holds the minimize, maximize, and close buttons.\n         * @param { Callback<TitleButtonRect> } callback - Callback used to return the new rectangle.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'windowTitleButtonRectChange', callback: Callback<TitleButtonRect>): void;\n        /**\n         * Unregister the callback of title buttons area change.\n         *\n         * @param { 'windowTitleButtonRectChange' } type - The value is fixed at 'windowTitleButtonRectChange', indicating the title buttons area change event.\n         * @param { Callback<TitleButtonRect> } callback - Callback used to return the current title buttons area.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Unsubscribes from the change event of the rectangle that holds the minimize, maximize, and close buttons on the title bar of the window.\n         *\n         * @param { 'windowTitleButtonRectChange' } type - Event type. The value is fixed at 'windowTitleButtonRectChange',\n         *                                                 indicating that the change event of the rectangle that holds the minimize, maximize, and close buttons.\n         * @param { Callback<TitleButtonRect> } callback - Callback used to return the new rectangle. If a value is passed in, the corresponding subscription is canceled.\n         *                                                 If no value is passed in, all subscriptions to the specified event are canceled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'windowTitleButtonRectChange', callback?: Callback<TitleButtonRect>): void;\n        /**\n         *  Set the window mask of window\n         *\n         * @param { Array<Array<number>> } windowMask - The mask of window. The value of the array is 0 and 1, the other number is illegal value.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        setWindowMask(windowMask: Array<Array<number>>): Promise<void>;\n        /**\n         * Register the callback of windowRectChange\n         *\n         * @param { 'windowRectChange' } type - The value is fixed at 'windowRectChange', indicating the window rect change event.\n         * @param { Callback<RectChangeOptions> } callback - Callback used to return the RectChangeOptions.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        on(type: 'windowRectChange', callback: Callback<RectChangeOptions>): void;\n        /**\n         * Unregister the callback of windowRectChange\n         *\n         * @param { 'windowRectChange' } type - The value is fixed at 'windowRectChange', indicating the window rect change event.\n         * @param { Callback<RectChangeOptions> } callback - Callback used to return the RectChangeOptions.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        off(type: 'windowRectChange', callback?: Callback<RectChangeOptions>): void;\n        /**\n         * Register the callback of rotation change\n         *\n         * @param { 'rotationChange' } type - The value is fixed at 'rotationChange', indicating the window rotation change event.\n         * @param { RotationChangeCallback<RotationChangeInfo, RotationChangeResult | void> } callback - Callback used to return the rotation change result.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        on(type: 'rotationChange', callback: RotationChangeCallback<RotationChangeInfo, RotationChangeResult | void>): void;\n        /**\n         * Unregister the callback of rotationChange\n         *\n         * @param { 'rotationChange' } type - The value is fixed at 'rotationChange', indicating the window rotation change event.\n         * @param { RotationChangeCallback<RotationChangeInfo, RotationChangeResult | void> } callback - Callback used to return the RectChangeOptions.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        off(type: 'rotationChange', callback?: RotationChangeCallback<RotationChangeInfo, RotationChangeResult | void>): void;\n        /**\n         * Set gray scale of window.\n         *\n         * @param { number } grayScale - The value of gray scale.\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        setWindowGrayScale(grayScale: number): Promise<void>;\n        /**\n         * Set whether to enable immersive mode.\n         *\n         * @param { boolean } enabled - The value true means to enable immersive mode, and false means the opposite.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        setImmersiveModeEnabledState(enabled: boolean): void;\n        /**\n         * Get whether the immersive mode is enabled or not.\n         *\n         * @returns { boolean } - The value true means the immersive mode is enabled, and false means the opposite.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        getImmersiveModeEnabledState(): boolean;\n        /**\n         * Get the window status of current window.\n         *\n         * @returns { WindowStatusType } - The status of window.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        getWindowStatus(): WindowStatusType;\n        /**\n         * Checks whether the window is focused.\n         *\n         * @returns { boolean } - Whether the window is focused. The value true means that the window is focused, and false means the opposite.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @atomicservice\n         * @since 12\n         */\n        isFocused(): boolean;\n        /**\n         * Creates a child window under the main window, another child window, or floating window.\n         *\n         * @param { string } name - Name of the child window.\n         * @param { SubWindowOptions } options - Parameters used for creating the child window.\n         * @returns { Promise<Window> } Promise used to used to return the child window created.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 12\n         */\n        createSubWindowWithOptions(name: string, options: SubWindowOptions): Promise<Window>;\n        /**\n         * Set the parent window of the child window.\n         *\n         * @param { number } windowId - Indicates parent window id.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @throws { BusinessError } 1300009 - The parent window is invaild.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        setParentWindow(windowId: number): Promise<void>;\n        /**\n         * Get the parent window.\n         *\n         * @returns { Window } Parent Window.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @throws { BusinessError } 1300009 - The parent window is invaild.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        getParentWindow(): Window;\n        /**\n         * Set whether the sub window supports simultaneous display on multiple screens when the parent window is dragged to move or dragged to zoom.\n         *\n         * @param { boolean } enabled - The value true means sub window supports simultaneous display on multiple screens when the parent window\n         *                              is dragged to move or dragged to zoom, and false means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported.Function setFollowParentMultiScreenPolicy can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 17\n         */\n        setFollowParentMultiScreenPolicy(enabled: boolean): Promise<void>;\n        /**\n         * Set whether the title bar and dock bar will show, when the mouse hovers over hot area.\n         *\n         * @param { boolean } isTitleHoverShown - The value true means to display the title bar, and false means the opposite.\n         * @param { boolean } isDockHoverShown - The value true means to display the dock bar, and false means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        /**\n         * Sets whether to show the window title bar and dock bar when the cursor hovers over the hot zone while the main window is in full-screen mode.\n         *\n         * @param { boolean } isTitleHoverShown - Whether to show the window title bar. The value true means to show the window title bar,\n         *                                        and false means the opposite. The default value is true.\n         * @param { boolean } isDockHoverShown - Whether to show the dock bar. The value true means to show the dock bar,\n         *                                       and false means the opposite. The default value is true.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        setTitleAndDockHoverShown(isTitleHoverShown?: boolean, isDockHoverShown?: boolean): Promise<void>;\n        /**\n         * Set whether window delay raise is enabled.\n         *\n         * @param { boolean } isEnabled - The value true means to enable window delay raise, and false means disable window delay raise.\n         * @throws { BusinessError } 801 - Capability not supported.function setWindowDelayRaiseOnDrag can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        setWindowDelayRaiseOnDrag(isEnabled: boolean): void;\n        /**\n         * Set the zlevel of current sub window.\n         *\n         * @param { number } zLevel - the zlevel of current sub window.\n         * @returns { Promise<void> } - The promise returned by the function.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Function setSubWindowZLevel can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @throws { BusinessError } 1300009 - The parent window is invalid.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        setSubWindowZLevel(zLevel: number): Promise<void>;\n        /**\n         * Get the zlevel of current sub window.\n         *\n         * @returns { number } - the zlevel of current sub window.\n         * @throws { BusinessError } 801 - Capability not supported. Function setSubWindowZLevel can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300004 - Unauthorized operation.\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        getSubWindowZLevel(): number;\n    }\n    /**\n     * Window stage callback event type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @StageModelOnly\n     * @since 9\n     */\n    /**\n     * Window stage callback event type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @StageModelOnly\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Window stage callback event type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @StageModelOnly\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    enum WindowStageEventType {\n        /**\n         * The window stage is running in the foreground.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * The window stage is running in the foreground.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The window stage is running in the foreground.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        SHOWN = 1,\n        /**\n         * The window stage gains focus.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * The window stage gains focus.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The window stage gains focus.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        ACTIVE,\n        /**\n         * The window stage loses focus.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * The window stage loses focus.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The window stage loses focus.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        INACTIVE,\n        /**\n         * The window stage is running in the background.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * The window stage is running in the background.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * The window stage is running in the background.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        HIDDEN,\n        /**\n         * The window stage is interactive in the foreground.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        RESUMED,\n        /**\n         * The window stage is not interactive in the foreground.\n         *\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        PAUSED\n    }\n    /**\n     * Enum for window modality Type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 14\n     */\n    enum ModalityType {\n        /**\n         * The value means window modality.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        WINDOW_MODALITY = 0,\n        /**\n         * The value means application modality.\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        APPLICATION_MODALITY = 1\n    }\n    /**\n     * Options for window shown\n     *\n     * @interface ShowWindowOptions\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 20\n     */\n    interface ShowWindowOptions {\n        /**\n         * Indicates whether the window get focus when it is shown\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        focusOnShow?: boolean;\n    }\n    /**\n     * Options for subwindow creation\n     *\n     * @interface SubWindowOptions\n     * @syscap SystemCapability.Window.SessionManager\n     * @since 11\n     */\n    /**\n     * Options for subwindow creation\n     *\n     * @interface SubWindowOptions\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 12\n     */\n    interface SubWindowOptions {\n        /**\n         * Indicates subwindow title\n         *\n         * @type { string }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Indicates subwindow title\n         *\n         * @type { string }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        title: string;\n        /**\n         * Indicates decor of subwindow\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @since 11\n         */\n        /**\n         * Indicates decor of subwindow\n         *\n         * @type { boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        decorEnabled: boolean;\n        /**\n         * Indicates modality of subwindow\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 12\n         */\n        isModal?: boolean;\n        /**\n         * Indicates modality type of subwindow\n         *\n         * @type { ?ModalityType }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 14\n         */\n        modalityType?: ModalityType;\n        /**\n         * Indicates position and size of subwindow\n         *\n         * @type { ?Rect }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        windowRect?: Rect;\n        /**\n         * Indicates whether subwindow support fullscreen\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        maximizeSupported?: boolean;\n        /**\n         * Indicates zlevel of subwindow\n         *\n         * @type { ?number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 18\n         */\n        zLevel?: number;\n        /**\n         * Indicates whether subwindow show outline\n         *\n         * @type { ?boolean }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        outlineEnabled?: boolean;\n    }\n    /**\n     * WindowStage\n     *\n     * @interface WindowStage\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @since 9\n     */\n    /**\n     * WindowStage\n     *\n     * @interface WindowStage\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * WindowStage\n     *\n     * @interface WindowStage\n     * @syscap SystemCapability.WindowManager.WindowManager.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    interface WindowStage {\n        /**\n         * Get main window of the stage.\n         *\n         * @returns { Promise<Window> } Callback used to return the subwindow.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Get main window of the stage.\n         *\n         * @returns { Promise<Window> } Callback used to return the subwindow.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the main window of this window stage. This API uses a promise to return the result.\n         *\n         * @returns { Promise<Window> } Promise used to return the main window.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMainWindow(): Promise<Window>;\n        /**\n         * Get main window of the stage.\n         *\n         * @param { AsyncCallback<Window> } callback Callback used to return the main window.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Get main window of the stage.\n         *\n         * @param { AsyncCallback<Window> } callback Callback used to return the main window.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the main window of this window stage. This API uses an asynchronous callback to return the result.\n         *\n         * @param { AsyncCallback<Window> } callback Callback used to return the main window.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMainWindow(callback: AsyncCallback<Window>): void;\n        /**\n         * Get main window of the stage.\n         *\n         * @returns { Window }\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Get main window of the stage.\n         *\n         * @returns { Window }\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains the main window of this window stage.\n         *\n         * @returns { Window } Main window.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getMainWindowSync(): Window;\n        /**\n         * Create sub window of the stage.\n         *\n         * @param { string } name window name of sub window\n         * @returns { Promise<Window> } Promise used to return the subwindow.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Create sub window of the stage.\n         *\n         * @param { string } name window name of sub window\n         * @returns { Promise<Window> } Promise used to return the subwindow.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a child window for this window stage. This API uses a promise to return the result.\n         *\n         * @param { string } name Name of the child window.\n         * @returns { Promise<Window> } Promise used to return the child window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        createSubWindow(name: string): Promise<Window>;\n        /**\n         * Create sub window of the stage.\n         *\n         * @param { string } name window name of sub window\n         * @param { AsyncCallback<Window> } callback Callback used to return the subwindow.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Create sub window of the stage.\n         *\n         * @param { string } name window name of sub window\n         * @param { AsyncCallback<Window> } callback Callback used to return the subwindow.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Creates a child window for this window stage. This API uses an asynchronous callback to return the result.\n         *\n         * @param { string } name Name of the child window.\n         * @param { AsyncCallback<Window> } callback Callback used to return the child window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        createSubWindow(name: string, callback: AsyncCallback<Window>): void;\n        /**\n         * Create sub window of the stage.\n         *\n         * @param { string } name - window name of sub window\n         * @param { SubWindowOptions } options - options of sub window creation\n         * @returns { Promise<Window> } Promise used to return the subwindow.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @since 11\n         */\n        /**\n         * Create sub window of the stage.\n         *\n         * @param { string } name - window name of sub window\n         * @param { SubWindowOptions } options - options of sub window creation\n         * @returns { Promise<Window> } Promise used to return the subwindow.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 12\n         */\n        createSubWindowWithOptions(name: string, options: SubWindowOptions): Promise<Window>;\n        /**\n         * Get sub window of the stage.\n         *\n         * @returns { Promise<Array<Window>> }\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Get sub window of the stage.\n         *\n         * @returns { Promise<Array<Window>> }\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains all the child windows of this window stage. This API uses a promise to return the result.\n         *\n         * @returns { Promise<Array<Window>> } Promise used to return all the child windows.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getSubWindow(): Promise<Array<Window>>;\n        /**\n         * Get sub window of the stage.\n         *\n         * @param { AsyncCallback<Array<Window>> } callback Callback used to return all the subwindows.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Get sub window of the stage.\n         *\n         * @param { AsyncCallback<Array<Window>> } callback Callback used to return all the subwindows.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Obtains all the child windows of this window stage. This API uses a promise to return the result.\n         *\n         * @param { AsyncCallback<Array<Window>> } callback Callback used to return all the child windows.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        getSubWindow(callback: AsyncCallback<Array<Window>>): void;\n        /**\n         * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path Path of the page to which the content will be loaded\n         * @param { LocalStorage } storage The data object shared within the content instance loaded by the window\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path Path of the page to which the content will be loaded\n         * @param { LocalStorage } storage The data object shared within the content instance loaded by the window\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path Path of the page to which the content will be loaded\n         * @param { LocalStorage } storage The data object shared within the content instance loaded by the window\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContent(path: string, storage: LocalStorage, callback: AsyncCallback<void>): void;\n        /**\n         * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path of the page to which the content will be loaded\n         * @param { LocalStorage } storage The data object shared within the content instance loaded by the window\n         * @returns { Promise<void> }\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path of the page to which the content will be loaded\n         * @param { LocalStorage } storage The data object shared within the content instance loaded by the window\n         * @returns { Promise<void> }\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Loads the content of a page, with its path in the current project specified, to the main window of this window stage, and transfers the state attribute to the page through a local storage.\n         * This API uses a promise to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path of the page to which the content will be loaded\n         * @param { LocalStorage } storage The data object shared within the content instance loaded by the window\n         * @returns { Promise<void> }\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContent(path: string, storage?: LocalStorage): Promise<void>;\n        /**\n         * Loads content from a page to this window stage. This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path of the page to which the content will be loaded\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Loads content from a page to this window stage. This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path of the page to which the content will be loaded\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Loads content from a page to this window stage. This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content. Exercise caution when using it.\n         *\n         * @param { string } path of the page to which the content will be loaded\n         * @param { AsyncCallback<void> } callback Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         *                                                                  3. Invalid path parameter.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContent(path: string, callback: AsyncCallback<void>): void;\n        /**\n         * Loads the content of a named route page to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content.\n         * Exercise caution when using it.\n         *\n         * @param { string } name - Name of the named route page.\n         * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContentByName(name: string, storage: LocalStorage, callback: AsyncCallback<void>): void;\n        /**\n         * Loads the content of a named route page to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content.\n         * Exercise caution when using it.\n         *\n         * @param { string } name - Name of the named route page.\n         * @param { AsyncCallback<void> } callback - Callback used to return the result.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContentByName(name: string, callback: AsyncCallback<void>): void;\n        /**\n         * Loads the content of a named route page to this window, and transfers the state attribute to the page through a local storage.\n         * This API uses an asynchronous callback to return the result. You are advised to call this API during UIAbility startup.\n         * If called multiple times, this API will destroy the existing page content (UIContent) before loading the new content.\n         * Exercise caution when using it.\n         *\n         * @param { string } name - Name of the named route page.\n         * @param { LocalStorage } storage - Page-level UI state storage unit, which is used to transfer the state attribute for the page.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @stagemodelonly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        loadContentByName(name: string, storage?: LocalStorage): Promise<void>;\n        /**\n         * Window stage event callback on.\n         *\n         * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.\n         * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Window stage event callback on.\n         *\n         * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.\n         * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Subscribes to the window stage lifecycle change event.\n         *\n         * @param { 'windowStageEvent' } eventType Event type. The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.\n         * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        on(eventType: 'windowStageEvent', callback: Callback<WindowStageEventType>): void;\n        /**\n         * Window stage event callback off.\n         *\n         * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.\n         * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @since 9\n         */\n        /**\n         * Window stage event callback off.\n         *\n         * @param { 'windowStageEvent' } eventType The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.\n         * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @since 10\n         */\n        /**\n         * Unsubscribes from the window stage lifecycle change event.\n         *\n         * @param { 'windowStageEvent' } eventType Event type. The value is fixed at 'windowStageEvent', indicating the window stage lifecycle change event.\n         * @param { Callback<WindowStageEventType> } callback Callback used to return the window stage lifecycle state.\n         *                                                    If a value is passed in, the corresponding subscription is canceled.\n         *                                                    If no value is passed in, all subscriptions to the specified event are canceled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Incorrect parameter types;\n         *                                                                  2. Parameter verification failed.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.WindowManager.WindowManager.Core\n         * @StageModelOnly\n         * @crossplatform\n         * @atomicservice\n         * @since 11\n         */\n        off(eventType: 'windowStageEvent', callback?: Callback<WindowStageEventType>): void;\n        /**\n         * Subscribes to the click event on the close button in the three-button navigation bar of the main window.\n         * This event is triggered when the close button in the three-button navigation bar of the main window is clicked.\n         *\n         * @param { 'windowStageClose' } eventType - Event type. The value is fixed at 'windowStageClose',\n         *                                           indicating that the close button in the three-button navigation bar of the main window is clicked.\n         * @param { Callback<void> } callback - Callback invoked when the close button in the upper right corner of the main window is clicked.\n         *                                      The return value determines whether to continue to close the main window.\n         *                                      The value true means not to close the main window, and false means to continue to close the main window.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @stagemodelonly\n         * @atomicservice\n         * @since 14\n         */\n        on(eventType: 'windowStageClose', callback: Callback<void>): void;\n        /**\n         * Unsubscribes from the event indicating that the main window is closed.\n         *\n         * @param { 'windowStageClose' } eventType - Event type. The value is fixed at 'windowStageClose',\n         *                                           indicating that the close button in the three-button navigation bar of the main window is clicked.\n         * @param { Callback<void> } callback - Callback invoked when the close button in the upper right corner of the main window is clicked.\n         *                                      If a value is passed in, the corresponding subscription is canceled.\n         *                                      If no value is passed in, all subscriptions to the specified event are canceled.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types;\n         *                                                                  3. Parameter verification failed.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @stagemodelonly\n         * @atomicservice\n         * @since 14\n         */\n        off(eventType: 'windowStageClose', callback?: Callback<void>): void;\n        /**\n         * Set whether to use default density.\n         *\n         * @param { boolean } enabled - Use default density if true, or follow system density change if false\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 12\n         */\n        setDefaultDensityEnabled(enabled: boolean): void;\n        /**\n         * Sets the custom density of ability.\n         *\n         * @param { number } density - the specified custom density value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 15\n         */\n        setCustomDensity(density: number): void;\n        /**\n         * Allows the application to control the time when the launch page disappears.\n         * This API takes effect only for the application main window when enable.remove.starting.window under metadata in abilities in the module.json5 file is set to true.\n         *\n         * @returns { Promise<void> } - Promise that returns no value.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 14\n         */\n        removeStartingWindow(): Promise<void>;\n        /**\n         * Set the application modality of the windowStage.\n         *\n         * @param { boolean } isModal - Enable the window modal if true, otherwise means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 14\n         */\n        /**\n         * Enables the modal property of the main window.\n         *\n         * @param { boolean } isModal - Whether to enable the modal property of the main window.\n         *                              The value true means to enable the modal property, and false means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @throws { BusinessError } 1300005 - This window stage is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 20\n         */\n        setWindowModal(isModal: boolean): Promise<void>;\n        /**\n         * Sets whether to enable the auto-save feature for the size of the main window.\n         *\n         * @param { boolean } enabled - Whether to enable the auto-save feature for the main window's size.\n         *                              The value true means to enable the auto-save feature, and false means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 14\n         */\n        setWindowRectAutoSave(enabled: boolean): Promise<void>;\n        /**\n         * Set to automatically save the window rect and whether to enable specifiedFlag.\n         * Through the specifiedFlag flag, the window is marked and its rect is saved.\n         *\n         * @param { boolean } enabled - Enable the window rect auto-save if true, otherwise means the opposite.\n         * @param { boolean } isSaveBySpecifiedFlag - Enable the specifiedFlag if true, otherwise means the opposite.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible causes: 1. Mandatory parameters are left unspecified;\n         *                                                                   2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Function setWindowRectAutoSave can not work correctly due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @stagemodelonly\n         * @atomicservice\n         * @since 17\n         */\n        setWindowRectAutoSave(enabled: boolean, isSaveBySpecifiedFlag: boolean): Promise<void>;\n        /**\n         * Whether the window supports the window rect auto-save.\n         *\n         * @returns { Promise<boolean> } Promise used to return the result.\n         *  The value true means that the window rect auto-save is supported, and false means the opposite.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 14\n         */\n        /**\n         * Checks whether the auto-save feature is enabled for the main window's size.\n         *\n         * @returns { Promise<boolean> } Promise used to return the result. The value true means that the auto-save feature is enabled, and false means the opposite.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 20\n         */\n        isWindowRectAutoSave(): Promise<boolean>;\n        /**\n         * Sets the supported window modes of the main window.\n         *\n         * @param { Array<bundleManager.SupportWindowMode> } supportedWindowModes - The supported modes of window.\n         * @returns { Promise<void> } Promise that returns no value.\n         * @throws { BusinessError } 401 - Parameter error. Possible cause: 1. Mandatory parameters are left unspecified;\n         *                                                                  2. Incorrect parameter types.\n         * @throws { BusinessError } 801 - Capability not supported. Failed to call the API due to limited device capabilities.\n         * @throws { BusinessError } 1300002 - This window state is abnormal.\n         * @throws { BusinessError } 1300003 - This window manager service works abnormally.\n         * @syscap SystemCapability.Window.SessionManager\n         * @StageModelOnly\n         * @atomicservice\n         * @since 15\n         */\n        setSupportedWindowModes(supportedWindowModes: Array<bundleManager.SupportWindowMode>): Promise<void>;\n    }\n    /**\n     * The layout info of Window.\n     *\n     * @interface WindowLayoutInfo\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 15\n     */\n    interface WindowLayoutInfo {\n        /**\n         * The position and size of window.\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 15\n         */\n        windowRect: Rect;\n    }\n    /**\n     * Enum for window mode\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 20\n     */\n    enum GlobalWindowMode {\n        /**\n         * Fullscreen\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        FULLSCREEN = 1,\n        /**\n         * Split\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        SPLIT = 1 << 1,\n        /**\n         * Float\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        FLOAT = 1 << 2,\n        /**\n         * Picture in picture\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 20\n         */\n        PIP = 1 << 3\n    }\n    /**\n     * Rotation change type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 19\n     */\n    enum RotationChangeType {\n        /**\n         * Rotation will begin\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        WINDOW_WILL_ROTATE = 0,\n        /**\n         * Rotation end\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        WINDOW_DID_ROTATE = 1\n    }\n    /**\n     * Rect type\n     *\n     * @enum { number }\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 19\n     */\n    enum RectType {\n        /**\n         * Rect relative to screen\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        RELATIVE_TO_SCREEN = 0,\n        /**\n         * Rect relative to parent window\n         *\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        RELATIVE_TO_PARENT_WINDOW = 1\n    }\n    /**\n     * Rotation change info\n     *\n     * @interface RotationChangeInfo\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 19\n     */\n    interface RotationChangeInfo {\n        /**\n         * Rotation change type\n         *\n         * @type { RotationChangeType }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        type: RotationChangeType;\n        /**\n         * window orientation\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        orientation: number;\n        /**\n         * Display id\n         *\n         * @type { number }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        displayId: number;\n        /**\n         * Display rect\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        displayRect: Rect;\n    }\n    /**\n     * Rotation change result\n     *\n     * @interface RotationChangeResult\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 19\n     */\n    interface RotationChangeResult {\n        /**\n         * Rect type\n         *\n         * @type { RectType }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        rectType: RectType;\n        /**\n         * Window rect\n         *\n         * @type { Rect }\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        windowRect: Rect;\n    }\n    /**\n     * Rotation Change callback\n     *\n     * @typedef RotationChangeCallback<T, U>\n     * @syscap SystemCapability.Window.SessionManager\n     * @atomicservice\n     * @since 19\n     */\n    interface RotationChangeCallback<T, U> {\n        /**\n         * Defines the rotation change callback\n         *\n         * @param { T } info\n         * @returns { U } result\n         * @syscap SystemCapability.Window.SessionManager\n         * @atomicservice\n         * @since 19\n         */\n        (info: T): U;\n    }\n}\nexport default window;\n",
}
export default FILE;